aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo.h
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2010-04-26 17:11:15 -0700
committerPeter Seebach <peter.seebach@windriver.com>2010-04-26 17:13:45 -0700
commit2cc5cc8fb02ce787753f2b3903864c7e1b98bd4d (patch)
tree16456f1998a2e3754393951e569292c0bea09ccf /pseudo.h
parent4038d0599e135ea0099a2392e0421bcc1d053825 (diff)
downloadpseudo-2cc5cc8fb02ce787753f2b3903864c7e1b98bd4d.tar.gz
pseudo-2cc5cc8fb02ce787753f2b3903864c7e1b98bd4d.tar.bz2
pseudo-2cc5cc8fb02ce787753f2b3903864c7e1b98bd4d.zip
Updates/improvements for logging
Send program name (program_invocation_name from glibc) along with the tag. Along the way, restructure the fds/pids/tags arrays to be an array of client structures in pseudo_server, and add the message type to the set of things logged -- logging that a message was a ping is more useful than appending the text "ping" to it. Add support for type and program to pseudolog. Add deletion to pseudolog. Handle usage message formatting when there's an odd number of known specifiers for pseudolog. Conflicts: ChangeLog.txt pseudo_server.c
Diffstat (limited to 'pseudo.h')
-rw-r--r--pseudo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pseudo.h b/pseudo.h
index 85fd3d1..1eed2ce 100644
--- a/pseudo.h
+++ b/pseudo.h
@@ -99,8 +99,8 @@ typedef enum pseudo_query_field {
PSQF_CLIENT, PSQF_DEV, PSQF_FD, PSQF_FTYPE,
PSQF_GID, PSQF_ID, PSQF_INODE, PSQF_MODE,
PSQF_OP, PSQF_ORDER, PSQF_PATH, PSQF_PERM,
- PSQF_RESULT, PSQF_SEVERITY, PSQF_STAMP, PSQF_TAG,
- PSQF_TEXT, PSQF_UID,
+ PSQF_PROGRAM, PSQF_RESULT, PSQF_SEVERITY, PSQF_STAMP,
+ PSQF_TAG, PSQF_TEXT, PSQF_TYPE, PSQF_UID,
PSQF_MAX
} pseudo_query_field_t;
extern char *pseudo_query_field_name(pseudo_query_field_t id);