tweak error reporting when looking for hfs volume name trunk
authordbj <dbj@NetBSD.org>
Mon, 09 Sep 2002 10:38:55 +0000
branchtrunk
changeset 101790 1f1d5d5e3d43
parent 101789 71ac9ac6d642
child 101791 d4af04574fa2
tweak error reporting when looking for hfs volume name
dist/pdisk/hfs_misc.c
--- a/dist/pdisk/hfs_misc.c	Mon Sep 09 10:35:03 2002 +0000
+++ b/dist/pdisk/hfs_misc.c	Mon Sep 09 10:38:55 2002 +0000
@@ -196,20 +196,20 @@
     data = entry->data;
     if (strcmp(data->dpme_type, kHFSType) == 0) {
 	if (read_partition_block(entry, 2, (char *)mdb) == 0) {
-	    //error(-1, "Can't read block %d from partition %d", 2, entry->disk_address);
+	    error(-1, "Can't read block %d from partition %d", 2, entry->disk_address);
 	    goto not_hfs;
 	}
 	if (mdb->drSigWord == HFS_PLUS_SIG) {
 	    // pure HFS Plus
-	    // printf("%d HFS Plus\n", entry->disk_address);
+	    // printf("%lu HFS Plus\n", entry->disk_address);
 	    *kind = kHFS_plus;
 	} else if (mdb->drSigWord != HFS_SIG) {
 	    // not HFS !!!
-	    // printf("%d not HFS\n", entry->disk_address);
+	    printf("%lu not HFS\n", entry->disk_address);
 	    *kind = kHFS_not;
 	} else if (mdb->drEmbedSigWord != HFS_PLUS_SIG) {
 	    // HFS
-	    // printf("%d HFS\n", entry->disk_address);
+	    // printf("%lu HFS\n", entry->disk_address);
 	    *kind = kHFS_std;
 	    len = mdb->drVN[0];
 	    name = (char *) malloc(len+1);
@@ -217,7 +217,7 @@
 	    name[len] = 0;
 	} else {
 	    // embedded HFS plus
-	    // printf("%d embedded HFS Plus\n", entry->disk_address);
+	    // printf("%lu embedded HFS Plus\n", entry->disk_address);
 	    *kind = kHFS_embed;
 	    len = mdb->drVN[0];
 	    name = (char *) malloc(len+1);