* keyctl.c (print_keyring_serial_number): Use printxval_d instead of
looking up and printing xlat value manually.
* xlat/key_spec.in: Add "#val_type int" so the xlat values have sign
bit propagated.
static void
print_keyring_serial_number(key_serial_t id)
{
- const char *str = xlookup(key_spec, (unsigned int) id);
-
- if (str)
- tprints(str);
- else
- tprintf("%d", id);
+ printxval_d(key_spec, id, NULL);
}
SYS_FUNC(add_key)
+#val_type int
KEY_SPEC_THREAD_KEYRING -1
KEY_SPEC_PROCESS_KEYRING -2
KEY_SPEC_SESSION_KEYRING -3