summaryrefslogtreecommitdiffstats
path: root/super-mbr.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 /super-mbr.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 'super-mbr.c')
-rw-r--r--super-mbr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/super-mbr.c b/super-mbr.c
index 0fcac7c3..62b3f031 100644
--- a/super-mbr.c
+++ b/super-mbr.c
@@ -81,8 +81,7 @@ static int load_super_mbr(struct supertype *st, int fd, char *devname)
free_mbr(st);
if (posix_memalign((void**)&super, 512, 512) != 0) {
- pr_err("%s could not allocate superblock\n",
- __func__);
+ pr_err("could not allocate superblock\n");
return 1;
}
@@ -119,8 +118,7 @@ static int store_mbr(struct supertype *st, int fd)
struct MBR *old, *super;
if (posix_memalign((void**)&old, 512, 512) != 0) {
- pr_err("%s could not allocate superblock\n",
- __func__);
+ pr_err("could not allocate superblock\n");
return 1;
}