From: Lars Marowsky-Bree <lmb@suse.de>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] libdlm: improve logging
Date: Thu, 3 Sep 2009 12:57:28 +0200 [thread overview]
Message-ID: <20090903105728.GE13451@suse.de> (raw)
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
reply other threads:[~2009-09-03 10:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090903105728.GE13451@suse.de \
--to=lmb@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).