printk_foo -> printk(BIOS_FOO, ...)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5266 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Stefan Reinauer
parent
27852aba67
commit
c02b4fc9db
@ -69,25 +69,25 @@ void dump_spd_registers(void)
|
||||
{
|
||||
unsigned device;
|
||||
device = SMBUS_MEM_DEVICE_START;
|
||||
printk_debug("\n");
|
||||
printk(BIOS_DEBUG, "\n");
|
||||
while(device <= SMBUS_MEM_DEVICE_END) {
|
||||
int status = 0;
|
||||
int i;
|
||||
printk_debug("dimm %02x", device);
|
||||
printk(BIOS_DEBUG, "dimm %02x", device);
|
||||
for(i = 0; (i < 256) && (status == 0); i++) {
|
||||
unsigned char byte;
|
||||
if ((i % 20) == 0) {
|
||||
printk_debug("\n%3d: ", i);
|
||||
printk(BIOS_DEBUG, "\n%3d: ", i);
|
||||
}
|
||||
status = smbus_read_byte(device, i, &byte);
|
||||
if (status != 0) {
|
||||
printk_debug("bad device\n");
|
||||
printk(BIOS_DEBUG, "bad device\n");
|
||||
continue;
|
||||
}
|
||||
printk_debug("%02x ", byte);
|
||||
printk(BIOS_DEBUG, "%02x ", byte);
|
||||
}
|
||||
device += SMBUS_MEM_DEVICE_INC;
|
||||
printk_debug("\n");
|
||||
printk(BIOS_DEBUG, "\n");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user