From 42ce50ea40dfd088991b90e00fb4d63c4fa9cb01 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Mon, 17 Mar 2003 01:32:56 +0000 Subject: [PATCH] fix compile error when DEBUG=1 git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1720 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/bmcsensors.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/chips/bmcsensors.c b/kernel/chips/bmcsensors.c index a0193c0b..a60dea3a 100644 --- a/kernel/chips/bmcsensors.c +++ b/kernel/chips/bmcsensors.c @@ -32,6 +32,10 @@ #include #include "version.h" +/* +#define DEBUG 1 +*/ + static unsigned short normal_i2c[] = { SENSORS_I2C_END }; static unsigned short normal_i2c_range[] = { SENSORS_I2C_END }; static unsigned int normal_isa[] = { SENSORS_ISA_END }; @@ -562,7 +566,7 @@ static int bmcsensors_rcv_sdr_msg(struct ipmi_msg *msg, int state) if(type == 0x10) { printk(KERN_INFO "bmcsensors.o: Generic Device acc=0x%x; slv=0x%x; lun=0x%x; type=0x%x; \"%s\"\n", data[8], data[9], data[10], data[13], id); - else if(type == 0x11) { + } else if(type == 0x11) { printk(KERN_INFO "bmcsensors.o: FRU Device acc=0x%x; slv=0x%x; log=0x%x; ch=0x%x; type=0x%x; \"%s\"\n", data[8], data[9], data[10], data[11], data[13], id); } else {