From: Lars Marowsky-Bree Date: Thu, 3 Sep 2009 12:57:28 +0200 Subject: [Cluster-devel] libdlm: improve logging Message-ID: <20090903105728.GE13451@suse.de> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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