summaryrefslogtreecommitdiffstats
path: root/Incremental.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-02-12 03:21:17 +0100
committerNeilBrown <neilb@suse.de>2015-02-12 03:21:17 +0100
commit1ade5cc15a61c6fe3084c5170934e05e9a574843 (patch)
treecef09af9a834857dc8d5929573784583cf35902d /Incremental.c
parentChange way of printing name of a process (diff)
downloadmdadm-1ade5cc15a61c6fe3084c5170934e05e9a574843.tar.xz
mdadm-1ade5cc15a61c6fe3084c5170934e05e9a574843.zip
Consistently print program Name and __func__ in debug messages.
make dprintf() print program name and __func__, so that this messaging is consistent. Also remove all __func__ messages from pr_err(). We shouldn't leak that internal data in error message. If we really want function name there, we new pr_XXX might be wanted. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Incremental.c')
-rw-r--r--Incremental.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Incremental.c b/Incremental.c
index 38c9989b..762af862 100644
--- a/Incremental.c
+++ b/Incremental.c
@@ -1710,9 +1710,9 @@ int IncrementalRemove(char *devname, char *id_path, int verbose)
char buf[32];
if (!id_path)
- dprintf("%s: incremental removal without --path <id_path> "
+ dprintf("incremental removal without --path <id_path> "
"lacks the possibility to re-add new device in this "
- "port\n", Name);
+ "port\n");
if (strchr(devname, '/')) {
pr_err("incremental removal requires a "