[syslinux:elflink] xfs: Use dprintf() for debug messages in xfs_debug()

syslinux-bot for Paulo Alcantara pcacjr at zytor.com
Tue Nov 27 12:57:16 PST 2012


Commit-ID:  85e0d335bee51eab9b7917008cdf7774cb9b636b
Gitweb:     http://www.syslinux.org/commit/85e0d335bee51eab9b7917008cdf7774cb9b636b
Author:     Paulo Alcantara <pcacjr at zytor.com>
AuthorDate: Mon, 23 Jul 2012 00:00:24 -0300
Committer:  Paulo Alcantara <pcacjr at zytor.com>
CommitDate: Mon, 23 Jul 2012 11:43:38 -0300

xfs: Use dprintf() for debug messages in xfs_debug()

xfs_debug() has been using printf() for debug messages. So, let's use
dprintf() function for now (which is the correct to do).

Signed-off-by: Paulo Alcantara <pcacjr at zytor.com>

---
 core/fs/xfs/xfs.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/fs/xfs/xfs.h b/core/fs/xfs/xfs.h
index d44e42a..a7330c2 100644
--- a/core/fs/xfs/xfs.h
+++ b/core/fs/xfs/xfs.h
@@ -25,6 +25,7 @@
 
 #include <disk.h>
 #include <fs.h>
+#include <dprintf.h>
 
 #include "xfs_types.h"
 #include "xfs_ag.h"
@@ -33,7 +34,7 @@
     printf("xfs: " fmt "\n", ## args);
 
 #define xfs_debug(fmt, args...) \
-    printf("%s: " fmt "\n", __func__, ## args);
+    dprintf("%s: " fmt "\n", __func__, ## args);
 
 struct xfs_fs_info;
 


More information about the Syslinux-commits mailing list