print operation names
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4483 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -40,6 +40,18 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
static char *op_names[] = {
|
||||
"get",
|
||||
"delete",
|
||||
"create",
|
||||
"rename",
|
||||
"chpass",
|
||||
"modify",
|
||||
"randkey",
|
||||
"get_privs",
|
||||
"get_princs"
|
||||
};
|
||||
|
||||
static void
|
||||
print_entry(u_int32_t ver,
|
||||
time_t timestamp,
|
||||
@@ -50,8 +62,8 @@ print_entry(u_int32_t ver,
|
||||
char *p = ctime(×tamp);
|
||||
p[strlen(p) - 1] = '\0';
|
||||
|
||||
printf ("ver = %u, timestamp = %s, op = %d, len = %u\n",
|
||||
ver, p, op, len);
|
||||
printf ("ver = %u, timestamp = %s, op = %d (%s), len = %u\n",
|
||||
ver, p, op, op_names[op], len);
|
||||
sp->seek (sp, len, SEEK_CUR);
|
||||
}
|
||||
|
||||
@@ -64,7 +76,6 @@ main(int argc, char **argv)
|
||||
kadm5_server_context *server_context;
|
||||
kadm5_config_params conf;
|
||||
|
||||
|
||||
set_progname(argv[0]);
|
||||
|
||||
krb5_init_context(&context);
|
||||
|
Reference in New Issue
Block a user