NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-arm32/42728: Missing parenthesis in sys/arch/arm/arm32/fault.c
>Number: 42728
>Category: port-arm32
>Synopsis: Missing parenthesis in sys/arch/arm/arm32/fault.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-arm32-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 03 13:30:00 +0000 2010
>Originator: Henning Petersen
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
Missing parenthesis in sys/arch/arm/arm32/fault.c found by cppcheck.
>How-To-Repeat:
>Fix:
diff -u -r1.74 fault.c
--- sys/arch/arm/arm32/fault.c 5 Jan 2010 13:14:55 -0000 1.74
+++ sys/arch/arm/arm32/fault.c 3 Feb 2010 12:57:26 -0000
@@ -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