aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@zytor.com>2013-01-21 16:03:00 -0200
committerPaulo Alcantara <pcacjr@zytor.com>2013-01-21 16:03:00 -0200
commit51e6a071378786c799a23fb758534cb8ac959a25 (patch)
tree63e4c8a9c4c9b02af08a36215476d9dd49154bbb
parentbaea8e0c8625833909ecd51c9cf9b09c70aff639 (diff)
downloadsyslinux-51e6a071378786c799a23fb758534cb8ac959a25.tar.gz
syslinux-51e6a071378786c799a23fb758534cb8ac959a25.tar.xz
syslinux-51e6a071378786c799a23fb758534cb8ac959a25.zip
xfs: Improve error and debug printing
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
-rw-r--r--core/fs/xfs/xfs.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/fs/xfs/xfs.h b/core/fs/xfs/xfs.h
index da57221a..49c93024 100644
--- a/core/fs/xfs/xfs.h
+++ b/core/fs/xfs/xfs.h
@@ -31,10 +31,14 @@
#include "xfs_ag.h"
#define xfs_error(fmt, args...) \
- printf("xfs: " fmt "\n", ## args);
+ ({ \
+ printf("%s%s: xfs: [ERROR] " fmt "\n", __func__, __LINE__, ## args); \
+ })
#define xfs_debug(fmt, args...) \
- dprintf("%s: " fmt "\n", __func__, ## args);
+ ({ \
+ dprintf("%s%s: xfs: [DEBUG] " fmt "\n", __func__, __LINE__, ## args); \
+ })
struct xfs_fs_info;