Whamcloud - gitweb
b=18717 make "lfs check" output consistent on stdout
authorElena Gryaznova <elena.gryaznova@oracle.com>
Tue, 16 Nov 2010 11:30:43 +0000 (14:30 +0300)
committerVitaly Fertman <vitaly.fertman@sun.com>
Tue, 16 Nov 2010 22:07:59 +0000 (01:07 +0300)
o=Andreas.Dilger
i=Brian.Murrell
i=Elena.Gryaznova

lustre/utils/obd.c

index 7003657..0ff3100 100644 (file)
@@ -3107,12 +3107,12 @@ void  llapi_ping_target(char *obd_type, char *obd_name,
         if (rc)
                 rc = errno;
         if (rc == ENOTCONN || rc == ESHUTDOWN) {
-                printf("%s inactive.\n", obd_name);
+                printf("%s: INACTIVE\n", obd_name);
         } else if (rc) {
-                fprintf(stderr, "error: check '%s' %s\n",
+                printf("%s: check error: %s\n",
                         obd_name, strerror(errno));
         } else {
-                printf("%s active.\n", obd_name);
+                printf("%s: active\n", obd_name);
         }
 }