From 1b56aae848a7b579b1841b6ec1e47f61f9fa2af7 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 12 Oct 2010 16:17:16 +0200 Subject: libmount: improve assert() and DBG() usage Signed-off-by: Karel Zak --- shlibs/mount/src/tab_update.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shlibs/mount/src/tab_update.c') diff --git a/shlibs/mount/src/tab_update.c b/shlibs/mount/src/tab_update.c index 8b322ddef..b027a5528 100644 --- a/shlibs/mount/src/tab_update.c +++ b/shlibs/mount/src/tab_update.c @@ -596,7 +596,7 @@ int mnt_prepare_update(mnt_update *upd) return -EINVAL; DBG(UPDATE, mnt_debug_h(upd, - "prepare update (target %s, source %s, optstr %s)", + "prepare update (target=%s, source=%s, optstr=%s)", mnt_fs_get_target(upd->fs), mnt_fs_get_source(upd->fs), mnt_fs_get_optstr(upd->fs))); @@ -616,6 +616,9 @@ int mnt_prepare_update(mnt_update *upd) goto err; } } + + DBG(UPDATE, mnt_debug_h(upd, "filename: %s", upd->filename)); + if (!upd->format) { if (endswith(upd->filename, "mountinfo")) upd->format = MNT_FMT_MOUNTINFO; -- cgit v1.2.3-55-g7522