Module Name: src Committed By: martin Date: Sat Jan 18 18:39:55 UTC 2020
Modified Files: src/usr.sbin/sysinst: mbr.c Log Message: PR install/54872: fix printf argument order, sectors and heads were swapped in the bios geometry display. To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/usr.sbin/sysinst/mbr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/sysinst/mbr.c diff -u src/usr.sbin/sysinst/mbr.c:1.27 src/usr.sbin/sysinst/mbr.c:1.28 --- src/usr.sbin/sysinst/mbr.c:1.27 Wed Jan 15 19:36:30 2020 +++ src/usr.sbin/sysinst/mbr.c Sat Jan 18 18:39:55 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: mbr.c,v 1.27 2020/01/15 19:36:30 martin Exp $ */ +/* $NetBSD: mbr.c,v 1.28 2020/01/18 18:39:55 martin Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -260,8 +260,8 @@ set_bios_geom_with_mbr_guess(struct disk { int cyl, head, sec; - msg_fmt_display(MSG_nobiosgeom, "%d%d%d", pm->dlcyl, pm->dlhead, - pm->dlsec); + msg_fmt_display(MSG_nobiosgeom, "%d%d%d", + pm->dlcyl, pm->dlsec, pm->dlhead); if (guess_biosgeom_from_parts(parts, &cyl, &head, &sec) >= 0) msg_fmt_display_add(MSG_biosguess, "%d%d%d", cyl, head, sec); set_bios_geom(parts, &cyl, &head, &sec);