Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Add missing parentheses. Found by cppchec...



details:   https://anonhg.NetBSD.org/src/rev/19deb48fbb3c
branches:  trunk
changeset: 751396:19deb48fbb3c
user:      wiz <wiz%NetBSD.org@localhost>
date:      Wed Feb 03 13:51:00 2010 +0000

description:
Add missing parentheses. Found by cppcheck, reported by
Henning Petersen in PR 42728.

diffstat:

 sys/arch/arm/arm32/fault.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 1a3c86dad089 -r 19deb48fbb3c sys/arch/arm/arm32/fault.c
--- a/sys/arch/arm/arm32/fault.c        Wed Feb 03 13:48:53 2010 +0000
+++ b/sys/arch/arm/arm32/fault.c        Wed Feb 03 13:51:00 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fault.c,v 1.74 2010/01/05 13:14:55 mbalmer Exp $       */
+/*     $NetBSD: fault.c,v 1.75 2010/02/03 13:51:00 wiz Exp $   */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -82,7 +82,7 @@
 #include "opt_sa.h"
 
 #include <sys/types.h>
-__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.74 2010/01/05 13:14:55 mbalmer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.75 2010/02/03 13:51:00 wiz Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -740,8 +740,8 @@
 #ifdef THUMB_CODE
        if (tf->tf_spsr & PSR_T_bit) {
                printf("pc = 0x%08x, opcode 0x%04x, 0x%04x, insn = ",
-                   tf->tf_pc, *((u_int16 *)(tf->tf_pc & ~1),
-                   *((u_int16 *)((tf->tf_pc + 2) & ~1));
+                   tf->tf_pc, *((u_int16 *)(tf->tf_pc & ~1)),
+                   *((u_int16 *)((tf->tf_pc + 2) & ~1)));
        }
        else
 #endif



Home | Main Index | Thread Index | Old Index