binmunge: improve debug info
authorAlan Cox <alan@linux.intel.com>
Fri, 21 Sep 2018 22:40:52 +0000 (23:40 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 21 Sep 2018 22:40:52 +0000 (23:40 +0100)
Kernel/tools/binmunge.c

index b898eda..b7f9ebe 100644 (file)
@@ -181,8 +181,8 @@ void code_reloc(uint8_t sbank, uint16_t ptr, uint8_t dbank)
       buf[sbank][ptr] = da >> 8;
       break;
     default:
-      fprintf(stderr, "Bad relocation in code %04X: %02X\n",
-        ptr-1, buf[sbank][ptr-1]);
+      fprintf(stderr, "Bad relocation in code (%02X)%04X: %02X\n",
+        sbank, ptr-1, buf[sbank][ptr-1]);
   }
 }