summaryrefslogtreecommitdiff
path: root/mdstat.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-07-09 17:14:16 +1000
committerNeilBrown <neilb@suse.de>2012-07-09 17:14:16 +1000
commite7b84f9d5029338980d99d04b479ce814d4c4fcb (patch)
treebdaf73fa67253446dc0c5faef9256971d35e4955 /mdstat.c
parent5187a385870950d779b6434b2d2982914367f638 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdstat.c b/mdstat.c
index 17405601..0dece0aa 100644
--- a/mdstat.c
+++ b/mdstat.c
@@ -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;
}