Date: Sat, 20 May 2006 06:34:50 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 97500 for review Message-ID: <200605200634.k4K6YoUb011734@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=97500 Change 97500 by kmacy@kmacy_storage:sun4v_work on 2006/05/20 06:34:45 reduce the loader noise Affected files ... .. //depot/projects/kmacy_sun4v/src/lib/libstand/ufs.c#4 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/lib/libstand/ufs.c#4 (text+ko) ==== @@ -666,8 +666,8 @@ if (rc || read_size != 512) printf("strategy failed\n"); +#if 0 printf("%04d\n", i); -#if 0 hdump(buf, 512); #endif @@ -692,18 +692,19 @@ test_disk(f); #endif length = strlen(name); - +#if 0 printf("search_directory: name=%s\n", name); - +#endif fp->f_seekp = 0; while (fp->f_seekp < DIP(fp, di_size)) { int i; rc = buf_read_file(f, &buf, &buf_size); if (rc) return (rc); - +#if 0 printf("scan directory entries: @ 0x%llx (size=0x%llx)\n", (uint64_t)buf, (uint64_t)buf_size); +#endif dp = (struct direct *)buf; edp = (struct direct *)(buf + buf_size); i = 0; @@ -746,7 +747,7 @@ void map_sblock(struct fs *fsp) { struct solaris_fs sfs = *(struct solaris_fs *)fsp; - +#if 0 printf("fbsd fs_qfmask offset %lx solaris fs_qfmask offset %lx\n", offsetof(struct fs, fs_qfmask), offsetof(struct solaris_fs, fs_qfmask)); printf("fbsd fs_qbmask offset %lx solaris fs_qbmask offset %lx\n", @@ -755,9 +756,10 @@ printf(" fsp->fs_qbmask: %llx = sfs.fs_qbmask %08lx%08lx;\n", fsp->fs_qbmask, sfs.fs_qbmask.val[0], sfs.fs_qbmask.val[1]); - fsp->fs_qbmask = ((uint64_t)sfs.fs_qbmask.val[0]) << 32 | sfs.fs_qbmask.val[1]; printf(" fsp->fs_qfmask: %llx = sfs.fs_qfmask %08lx%08lx;\n", fsp->fs_qfmask, sfs.fs_qfmask.val[0], sfs.fs_qfmask.val[1]); +#endif + fsp->fs_qbmask = ((uint64_t)sfs.fs_qbmask.val[0]) << 32 | sfs.fs_qbmask.val[1]; fsp->fs_qfmask = ((uint64_t)sfs.fs_qfmask.val[0]) << 32 | sfs.fs_qfmask.val[1]; } @@ -850,8 +852,9 @@ goto out; } +#if 0 printf("read root inode \n"); - +#endif cp = path = strdup(upath); if (path == NULL) { rc = ENOMEM;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605200634.k4K6YoUb011734>