Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst PR install/54872: fix printf argument order...



details:   https://anonhg.NetBSD.org/src/rev/58b6b1550b84
branches:  trunk
changeset: 467264:58b6b1550b84
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Jan 18 18:39:55 2020 +0000

description:
PR install/54872: fix printf argument order, sectors and heads were
swapped in the bios geometry display.

diffstat:

 usr.sbin/sysinst/mbr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 3af8884505cb -r 58b6b1550b84 usr.sbin/sysinst/mbr.c
--- a/usr.sbin/sysinst/mbr.c    Sat Jan 18 17:18:41 2020 +0000
+++ b/usr.sbin/sysinst/mbr.c    Sat Jan 18 18:39:55 2020 +0000
@@ -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 @@
 {
        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);



Home | Main Index | Thread Index | Old Index