diff options
author | NeilBrown <neilb@suse.de> | 2015-02-12 03:21:17 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-02-12 03:21:17 +0100 |
commit | 1ade5cc15a61c6fe3084c5170934e05e9a574843 (patch) | |
tree | cef09af9a834857dc8d5929573784583cf35902d /Incremental.c | |
parent | Change way of printing name of a process (diff) | |
download | mdadm-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.c | 4 |
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 " |