Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/pdisk tweak error reporting when looking for hfs volume...



details:   https://anonhg.NetBSD.org/src/rev/61858e7d35f6
branches:  trunk
changeset: 536145:61858e7d35f6
user:      dbj <dbj%NetBSD.org@localhost>
date:      Mon Sep 09 10:38:55 2002 +0000

description:
tweak error reporting when looking for hfs volume name

diffstat:

 dist/pdisk/hfs_misc.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r a2fa4af2b25d -r 61858e7d35f6 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);



Home | Main Index | Thread Index | Old Index