Fossil SCM
When tracing the 'anoncap' or 'hascap' commands, which share an implementation, show which one is being traced.
Commit
9066bf13717c56e86a59a2d3d905f2e753e5bc69
Parent
901f18393d1d9e7…
1 file changed
+1
-1
+1
-1
| --- src/th_main.c | ||
| +++ src/th_main.c | ||
| @@ -649,11 +649,11 @@ | ||
| 649 | 649 | Th_ListAppend(interp, &zCapList, &nCapList, argv[i], argl[i]); |
| 650 | 650 | } |
| 651 | 651 | rc = login_has_capability((char*)argv[i],argl[i],*(int*)p); |
| 652 | 652 | } |
| 653 | 653 | if( g.thTrace ){ |
| 654 | - Th_Trace("[hascap %#h] => %d<br />\n", nCapList, zCapList, rc); | |
| 654 | + Th_Trace("[%s %#h] => %d<br />\n", argv[0], nCapList, zCapList, rc); | |
| 655 | 655 | Th_Free(interp, zCapList); |
| 656 | 656 | } |
| 657 | 657 | Th_SetResultInt(interp, rc); |
| 658 | 658 | return TH_OK; |
| 659 | 659 | } |
| 660 | 660 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -649,11 +649,11 @@ | |
| 649 | Th_ListAppend(interp, &zCapList, &nCapList, argv[i], argl[i]); |
| 650 | } |
| 651 | rc = login_has_capability((char*)argv[i],argl[i],*(int*)p); |
| 652 | } |
| 653 | if( g.thTrace ){ |
| 654 | Th_Trace("[hascap %#h] => %d<br />\n", nCapList, zCapList, rc); |
| 655 | Th_Free(interp, zCapList); |
| 656 | } |
| 657 | Th_SetResultInt(interp, rc); |
| 658 | return TH_OK; |
| 659 | } |
| 660 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -649,11 +649,11 @@ | |
| 649 | Th_ListAppend(interp, &zCapList, &nCapList, argv[i], argl[i]); |
| 650 | } |
| 651 | rc = login_has_capability((char*)argv[i],argl[i],*(int*)p); |
| 652 | } |
| 653 | if( g.thTrace ){ |
| 654 | Th_Trace("[%s %#h] => %d<br />\n", argv[0], nCapList, zCapList, rc); |
| 655 | Th_Free(interp, zCapList); |
| 656 | } |
| 657 | Th_SetResultInt(interp, rc); |
| 658 | return TH_OK; |
| 659 | } |
| 660 |