Module Name:    src
Committed By:   skrll
Date:           Tue Apr 20 10:01:37 UTC 2021

Modified Files:
        src/sys/arch/riscv/riscv: db_disasm.c

Log Message:
compile fixes


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/riscv/riscv/db_disasm.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/riscv/riscv/db_disasm.c
diff -u src/sys/arch/riscv/riscv/db_disasm.c:1.4 src/sys/arch/riscv/riscv/db_disasm.c:1.5
--- src/sys/arch/riscv/riscv/db_disasm.c:1.4	Mon Apr 19 07:55:59 2021
+++ src/sys/arch/riscv/riscv/db_disasm.c	Tue Apr 20 10:01:37 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_disasm.c,v 1.4 2021/04/19 07:55:59 dholland Exp $	*/
+/*	$NetBSD: db_disasm.c,v 1.5 2021/04/20 10:01:37 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__RCSID("$NetBSD: db_disasm.c,v 1.4 2021/04/19 07:55:59 dholland Exp $");
+__RCSID("$NetBSD: db_disasm.c,v 1.5 2021/04/20 10:01:37 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1015,6 +1015,10 @@ riscv_int_size(unsigned fpsize)
 	    case OPFP_WU: return ".wu";
 	    case OPFP_L: return ".l";
 	    case OPFP_LU: return ".lu";
+	    default:
+		/* matching should prevent it coming here */
+		KASSERT(0);
+		return ".?";
 	}
 }
 
@@ -1400,7 +1404,7 @@ db_disasm_32(db_addr_t loc, uint32_t ins
 
 		db_print_riscv_reg(INSN_RS2(insn),
 				   info->printflags & RS2_FREG);
-		db_printf(", ", sep);
+		db_printf("%s", sep);
 
 		db_printf("%d(", (int32_t)imm);
 		db_print_riscv_reg(INSN_RS1(insn),

Reply via email to