Make the dm_bulkall test output match that of the dm_bulkattr test
authorDean Roehrich <roehrich@sgi.com>
Mon, 31 May 2004 18:19:44 +0000 (18:19 +0000)
committerDean Roehrich <roehrich@sgi.com>
Mon, 31 May 2004 18:19:44 +0000 (18:19 +0000)
Change output to match test_bulkattr.c

dmapi/src/suite2/src/test_bulkall.c

index 408113becfe083854fec6d8e5a3f229b99829e66..427eeb34d6bebd015287dee77da9950d8bb34d04 100644 (file)
@@ -202,9 +202,10 @@ my_print_victim(
                 */
                if (verbose & V_PRINT) {
                        if (attrlen) {
-                               printf("%d (%s)\n",
-                                      attrlen,
-                                      isalpha(attrval[0]) ? attrval : "");
+                               if (isalpha(attrval[0]) )
+                                       printf("(%s)\n", attrval);
+                               else
+                                       printf("<len=%d>\n", attrlen);
                        }
                        else {
                                printf("<none>\n");