@@ -427,10 +427,12 @@ static uint64_t malta_fpga_read(void *opaque, hwaddr addr,
break;
default:
-#if 0
- printf("malta_fpga_read: Bad register offset 0x" TARGET_FMT_lx "\n",
- addr);
-#endif
+/*
+ * Possible logging:
+ *
+ * printf("malta_fpga_read: Bad register offset 0x" TARGET_FMT_lx "\n",
+ * addr);
+ */
break;
}
return val;
@@ -515,10 +517,12 @@ static void malta_fpga_write(void *opaque, hwaddr addr,
break;
default:
-#if 0
- printf("malta_fpga_write: Bad register offset 0x" TARGET_FMT_lx "\n",
- addr);
-#endif
+/*
+ * Possible logging:
+ *
+ * printf("malta_fpga_write: Bad register offset 0x" TARGET_FMT_lx "\n",
+ * addr);
+ */
break;
}
}
The checkpatch complain about "#ifdef 0". Convert corresponding dead code to comments. In future, these cases could be converted to some no-nonsense logging/tracing. Signed-off-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com> CC: Philippe Mathieu-Daudé <f4bug@amsat.org> --- hw/mips/mips_malta.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-)