diff options
Diffstat (limited to 'usr/src/cmd/format/menu_analyze.c')
-rw-r--r-- | usr/src/cmd/format/menu_analyze.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/format/menu_analyze.c b/usr/src/cmd/format/menu_analyze.c index 2b18e3c327..e932c258c8 100644 --- a/usr/src/cmd/format/menu_analyze.c +++ b/usr/src/cmd/format/menu_analyze.c @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -183,12 +183,12 @@ a_print() * Loop through the data buffer. */ lines = 0; - for (i = 0; i < scan_size * SECSIZE / sizeof (int); i += 6) { + for (i = 0; i < scan_size * cur_blksz / sizeof (int); i += 6) { /* * Print the data. */ for (j = 0; j < 6; j++) - if (i + j < scan_size * SECSIZE / sizeof (int)) + if (i + j < scan_size * cur_blksz / sizeof (int)) fmt_print("0x%08x ", *((int *)((int *)cur_buf + i + j))); fmt_print("\n"); |