Author: ae
Date: Sun Nov 18 17:27:10 2012
New Revision: 243244
URL: http://svnweb.freebsd.org/changeset/base/243244

Log:
  MFC r239070:
    Add simple test program that uses the partition tables handling code.
    It is useful to test and debug how boot loader handles partition tables
    metadata.
  
  MFC r239087:
    Add to the debug output the offset from the parent partitioning scheme.

Added:
  stable/9/tools/tools/bootparttest/
     - copied from r239070, head/tools/tools/bootparttest/
Modified:
  stable/9/tools/tools/bootparttest/bootparttest.c
Directory Properties:
  stable/9/tools/tools/   (props changed)

Modified: stable/9/tools/tools/bootparttest/bootparttest.c
==============================================================================
--- head/tools/tools/bootparttest/bootparttest.c        Sun Aug  5 15:40:16 
2012        (r239070)
+++ stable/9/tools/tools/bootparttest/bootparttest.c    Sun Nov 18 17:27:10 
2012        (r243244)
@@ -54,8 +54,8 @@ diskread(void *arg, void *buf, size_t bl
        struct disk *dp;
 
        dp = (struct disk *)arg;
-       printf("%s: read %d blocks from the offset %jd\n", dp->name,
-           blocks, offset);
+       printf("%s: read %d blocks from the offset %jd [+%jd]\n", dp->name,
+           blocks, offset, dp->offset);
        if (offset >= dp->mediasize / dp->sectorsize)
                return (-1);
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to