diff options
author | Pawel Baldysiak <pawel.baldysiak@intel.com> | 2015-02-11 22:25:03 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-02-12 02:11:01 +0100 |
commit | d56dd607ba433d9334f0fb4114fe081742ae4361 (patch) | |
tree | 80fa1ea9cdc500c5316b6b58998e4de37694272c /mdmon.h | |
parent | Monitor: fix for regression with container devices (diff) | |
download | mdadm-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 'mdmon.h')
-rw-r--r-- | mdmon.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -18,8 +18,7 @@ * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. */ -#undef pr_err -#define pr_err(fmt ...) fprintf(stderr, "mdmon: " fmt) +extern const char Name[]; enum array_state { clear, inactive, suspended, readonly, read_auto, clean, active, write_pending, active_idle, bad_word}; |