summaryrefslogtreecommitdiff
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-02-12 13:21:17 +1100
committerNeilBrown <neilb@suse.de>2015-02-12 13:21:17 +1100
commit1ade5cc15a61c6fe3084c5170934e05e9a574843 (patch)
treecef09af9a834857dc8d5929573784583cf35902d /mdadm.c
parentd56dd607ba433d9334f0fb4114fe081742ae4361 (diff)
downloadmdadm-1ade5cc15a61c6fe3084c5170934e05e9a574843.tar.gz
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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mdadm.c b/mdadm.c
index 475c71c..fd64e0e 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -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;