* [Cluster-devel] libdlm: improve logging
@ 2009-09-03 10:57 Lars Marowsky-Bree
0 siblings, 0 replies; only message in thread
From: Lars Marowsky-Bree @ 2009-09-03 10:57 UTC (permalink / raw)
To: cluster-devel.redhat.com
The patch is fairly self-explanatory and quite trivial - syslog was a
bit less than useful before.
Index: libdlm/group/dlm_controld/dlm_daemon.h
===================================================================
--- libdlm.orig/group/dlm_controld/dlm_daemon.h
+++ libdlm/group/dlm_controld/dlm_daemon.h
@@ -109,7 +109,7 @@ do { \
snprintf(daemon_debug_buf, 255, "%ld %s " fmt "\n", time(NULL), \
(ls)->name, ##args); \
daemon_dump_save(); \
- logt_print(LOG_DEBUG, fmt "\n", ##args); \
+ logt_print(LOG_DEBUG, "%s " fmt "\n", (ls)->name, ##args); \
if (daemon_debug_opt) \
fprintf(stderr, "%s", daemon_debug_buf); \
} while (0)
Regards,
Lars
--
Architect Storage/HA, OPS Engineering, Novell, Inc.
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N?rnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-03 10:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-03 10:57 [Cluster-devel] libdlm: improve logging Lars Marowsky-Bree
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).