Module Name:    src
Committed By:   isaki
Date:           Tue Jun 14 07:51:11 UTC 2016

Modified Files:
        src/sys/arch/x68k/x68k: machdep.c

Log Message:
In XM6 TypeG (and original XM6), its version number is
represented by BCD, not decimal.
Reported by GIMONS (the author of XM6 typeG).


To generate a diff of this commit:
cvs rdiff -u -r1.192 -r1.193 src/sys/arch/x68k/x68k/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x68k/x68k/machdep.c
diff -u src/sys/arch/x68k/x68k/machdep.c:1.192 src/sys/arch/x68k/x68k/machdep.c:1.193
--- src/sys/arch/x68k/x68k/machdep.c:1.192	Wed Sep 16 05:48:52 2015
+++ src/sys/arch/x68k/x68k/machdep.c	Tue Jun 14 07:51:10 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.192 2015/09/16 05:48:52 isaki Exp $	*/
+/*	$NetBSD: machdep.c,v 1.193 2016/06/14 07:51:10 isaki Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.192 2015/09/16 05:48:52 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.193 2016/06/14 07:51:10 isaki Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -421,7 +421,7 @@ check_emulator(char *buf, int bufsize)
 		xm6imark = intio_get_sysport_sramwp();
 		switch (xm6imark) {
 		case 0xff:	/* Original XM6 or unknown compatibles */
-			snprintf(buf, bufsize, "XM6 v%d.%02d",
+			snprintf(buf, bufsize, "XM6 v%x.%02x",
 				xm6major, xm6minor);
 			break;
 
@@ -433,7 +433,7 @@ check_emulator(char *buf, int bufsize)
 			break;
 
 		case 'g':	/* XM6 TypeG */
-			snprintf(buf, bufsize, "XM6 TypeG v%d.%02d",
+			snprintf(buf, bufsize, "XM6 TypeG v%x.%02x",
 				xm6major, xm6minor);
 			break;
 

Reply via email to