]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdstat.c
Introduce pr_err for printing error messages.
[thirdparty/mdadm.git] / mdstat.c
index 17405601bd650ba251cd5de65c27352961a5aebd..0dece0aa8d5941e6fd39042ef6fc3d82aac39a05 100644 (file)
--- 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;
                }