Skip to content

Commit

Permalink
Add request number
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Apr 9, 2014
1 parent 47373a8 commit ab482d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/xlat.c
Expand Up @@ -1882,6 +1882,10 @@ static char *xlat_aprint(TALLOC_CTX *ctx, REQUEST *request, xlat_exp_t const * c
strftime(str, freespace, "%m", &ts);
break;

case 'n': /* Request Number*/
snprintf(str, freespace, "%i", request->number);
break;

case 't': /* request timestamp */
CTIME_R(&when, str, freespace);
nl = strchr(str, '\n');
Expand Down

0 comments on commit ab482d9

Please sign in to comment.