diff --git a/src/hwm_lm75.c b/src/hwm_lm75.c index 1b6431395..0d937c194 100644 --- a/src/hwm_lm75.c +++ b/src/hwm_lm75.c @@ -133,7 +133,7 @@ lm75_read(lm75_t *dev, uint8_t reg) else ret = dev->regs[reg & 0x7]; - lm75_log("LM75: read(%x) = %02x\n", reg, ret); + lm75_log("LM75: read(%02X) = %02X\n", reg, ret); return ret; } @@ -186,7 +186,7 @@ lm75_smbus_write_word_cmd(uint8_t addr, uint8_t cmd, uint16_t val, void *priv) uint8_t lm75_write(lm75_t *dev, uint8_t reg, uint8_t val) { - lm75_log("LM75: write(%x, %02x)\n", reg, val); + lm75_log("LM75: write(%02X, %02X)\n", reg, val); /* The AS99127F hardware monitor uses the addresses of its LM75 devices to access some of its proprietary registers. Pass this operation on to diff --git a/src/hwm_lm78.c b/src/hwm_lm78.c index 2ecc36f14..2cac22881 100644 --- a/src/hwm_lm78.c +++ b/src/hwm_lm78.c @@ -142,7 +142,7 @@ lm78_isa_read(uint16_t port, void *priv) } break; default: - lm78_log("LM78: Read from unknown ISA port %x\n", port & 0x7); + lm78_log("LM78: Read from unknown ISA port %d\n", port & 0x7); break; } @@ -197,7 +197,7 @@ lm78_read(lm78_t *dev, uint8_t reg, uint8_t bank) ret = dev->regs[reg]; } - lm78_log("LM78: read(%02x, %d) = %02x\n", reg, bank, ret); + lm78_log("LM78: read(%02X, %d) = %02X\n", reg, bank, ret); return ret; } @@ -223,7 +223,7 @@ lm78_isa_write(uint16_t port, uint8_t val, void *priv) } break; default: - lm78_log("LM78: Write %02x to unknown ISA port %x\n", val, port & 0x7); + lm78_log("LM78: Write %02X to unknown ISA port %d\n", val, port & 0x7); break; } } @@ -258,7 +258,7 @@ lm78_write(lm78_t *dev, uint8_t reg, uint8_t val, uint8_t bank) { lm75_t *lm75; - lm78_log("LM78: write(%02x, %d, %02x)\n", reg, bank, val); + lm78_log("LM78: write(%02X, %d, %02X)\n", reg, bank, val); if (((reg >> 4) == 0x5) && (bank != 0)) { /* LM75 registers */ @@ -343,7 +343,7 @@ lm78_write(lm78_t *dev, uint8_t reg, uint8_t val, uint8_t bank) dev->active_bank = (dev->regs[0x4e] & 0x07); break; case 0x87: - /* fixes AS99127F boards hanging after save & exit, probably a reset register */ + /* fixes AS99127F boards hanging after BIOS save & exit, probably a reset register */ if ((dev->local & LM78_AS99127F) && (val == 0x01)) { lm78_log("LM78: Reset requested through AS99127F\n"); resetx86(); diff --git a/src/spd.c b/src/spd.c index 4b63c6d2c..84ba3eb84 100644 --- a/src/spd.c +++ b/src/spd.c @@ -73,7 +73,7 @@ spd_read_byte_cmd(uint8_t addr, uint8_t cmd, void *priv) { spd_t *dev = (spd_t *) priv; uint8_t ret = *(spd_data[dev->slot] + cmd); - spd_log("SPD: read(%02x, %02x) = %02x\n", addr, cmd, ret); + spd_log("SPD: read(%02X, %02X) = %02X\n", addr, cmd, ret); return ret; } @@ -195,7 +195,7 @@ spd_register(uint8_t ram_type, uint8_t slot_mask, uint16_t max_module_size) /* populate slot */ vslots[vslot] = (1 << log2_ui16(MIN(total_size, max_module_size))); if (total_size >= vslots[vslot]) { - spd_log("SPD: vslot %d = %d MB\n", vslot, vslots[vslot]); + spd_log("SPD: initial vslot %d = %d MB\n", vslot, vslots[vslot]); total_size -= vslots[vslot]; } else { vslots[vslot] = 0;