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 /mdadm.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 'mdadm.c')
-rw-r--r-- | mdadm.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1617,9 +1617,7 @@ static int scan_assemble(struct supertype *ss, a->autof = c->autof; } if (map_lock(&map)) - pr_err("%s: failed to get " - "exclusive lock on mapfile\n", - __func__); + pr_err("failed to get exclusive lock on mapfile\n"); do { failures = 0; successes = 0; |