summaryrefslogtreecommitdiffstats
path: root/super-intel.c
diff options
context:
space:
mode:
authorPawel Baldysiak <pawel.baldysiak@intel.com>2015-02-11 22:25:03 +0100
committerNeilBrown <neilb@suse.de>2015-02-12 02:11:01 +0100
commitd56dd607ba433d9334f0fb4114fe081742ae4361 (patch)
tree80fa1ea9cdc500c5316b6b58998e4de37694272c /super-intel.c
parentMonitor: fix for regression with container devices (diff)
downloadmdadm-d56dd607ba433d9334f0fb4114fe081742ae4361.tar.xz
mdadm-d56dd607ba433d9334f0fb4114fe081742ae4361.zip
Change way of printing name of a process
Sometimes mdadm prints messages with wrong name "mdmon", and vice versa. This patch solves this problem by changing method of determining process name. Now "Name" will be set in const at start of a program, previously was hardcoded as #define. Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com> Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-intel.c')
-rw-r--r--super-intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c
index 4b23b9ab..d9003393 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -1386,7 +1386,7 @@ static int imsm_check_attributes(__u32 attributes)
}
if (not_supported)
- dprintf(Name "(IMSM): Unknown attributes : %x\n", not_supported);
+ dprintf("%s (IMSM): Unknown attributes : %x\n", Name, not_supported);
ret_val = 0;
}