diff options
author | NeilBrown <neilb@suse.de> | 2012-07-09 17:14:16 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-07-09 17:14:16 +1000 |
commit | e7b84f9d5029338980d99d04b479ce814d4c4fcb (patch) | |
tree | bdaf73fa67253446dc0c5faef9256971d35e4955 /mdstat.c | |
parent | 5187a385870950d779b6434b2d2982914367f638 (diff) |
Introduce pr_err for printing error messages.
'pr_err("' is a lot shorter than 'fprintf(stderr, Name ": '
cont_err() is also available.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdstat.c')
-rw-r--r-- | mdstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -173,13 +173,13 @@ struct mdstat_ent *mdstat_read(int hold, int start) else continue; if (ep == NULL || *ep ) { - /* fprintf(stderr, Name ": bad /proc/mdstat line starts: %s\n", line); */ + /* pr_err("bad /proc/mdstat line starts: %s\n", line); */ continue; } ent = malloc(sizeof(*ent)); if (!ent) { - fprintf(stderr, Name ": malloc failed reading /proc/mdstat.\n"); + pr_err("malloc failed reading /proc/mdstat.\n"); free_line(line); break; } |