diff options
author | NeilBrown <neilb@suse.de> | 2015-02-12 13:21:17 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-02-12 13:21:17 +1100 |
commit | 1ade5cc15a61c6fe3084c5170934e05e9a574843 (patch) | |
tree | cef09af9a834857dc8d5929573784583cf35902d /super-gpt.c | |
parent | d56dd607ba433d9334f0fb4114fe081742ae4361 (diff) | |
download | mdadm-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 'super-gpt.c')
-rw-r--r-- | super-gpt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/super-gpt.c b/super-gpt.c index 6a2f749..1a2adce 100644 --- a/super-gpt.c +++ b/super-gpt.c @@ -77,8 +77,7 @@ static int load_gpt(struct supertype *st, int fd, char *devname) free_gpt(st); if (posix_memalign((void**)&super, 4096, 32*512) != 0) { - pr_err("%s could not allocate superblock\n", - __func__); + pr_err("could not allocate superblock\n"); return 1; } |