Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73635
b: refs/heads/master
c: 2ecb044
h: refs/heads/master
i:
  73633: 0cffe4f
  73631: 8539a33
v: v3
  • Loading branch information
Darrick J. Wong authored and Mark M. Hoffman committed Nov 8, 2007
1 parent d67e493 commit c6cfcb3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 298c752491f5bd8f6b04dd7fc40b53da4e86e093
refs/heads/master: 2ecb044e8d53245b7e987b30126c54a27db3bf7e
48 changes: 23 additions & 25 deletions trunk/drivers/hwmon/ibmpex.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ static int ibmpex_send_message(struct ibmpex_bmc_data *data)

return 0;
out1:
printk(KERN_ERR "%s: request_settime=%x\n", __FUNCTION__, err);
dev_err(data->bmc_device, "request_settime=%x\n", err);
return err;
out:
printk(KERN_ERR "%s: validate_addr=%x\n", __FUNCTION__, err);
dev_err(data->bmc_device, "validate_addr=%x\n", err);
return err;
}

Expand All @@ -161,14 +161,14 @@ static int ibmpex_ver_check(struct ibmpex_bmc_data *data)
data->sensor_major = data->rx_msg_data[0];
data->sensor_minor = data->rx_msg_data[1];

printk(KERN_INFO DRVNAME ": Found BMC with sensor interface "
"v%d.%d %d-%02d-%02d on interface %d\n",
data->sensor_major,
data->sensor_minor,
extract_value(data->rx_msg_data, 2),
data->rx_msg_data[4],
data->rx_msg_data[5],
data->interface);
dev_info(data->bmc_device, "Found BMC with sensor interface "
"v%d.%d %d-%02d-%02d on interface %d\n",
data->sensor_major,
data->sensor_minor,
extract_value(data->rx_msg_data, 2),
data->rx_msg_data[4],
data->rx_msg_data[5],
data->interface);

return 0;
}
Expand Down Expand Up @@ -212,8 +212,8 @@ static int ibmpex_query_sensor_data(struct ibmpex_bmc_data *data, int sensor)
wait_for_completion(&data->read_complete);

if (data->rx_result || data->rx_msg_len < 26) {
printk(KERN_ERR "Error reading sensor %d, please check.\n",
sensor);
dev_err(data->bmc_device, "Error reading sensor %d.\n",
sensor);
return -ENOENT;
}

Expand Down Expand Up @@ -456,8 +456,7 @@ static void ibmpex_register_bmc(int iface, struct device *dev)

data = kzalloc(sizeof(*data), GFP_KERNEL);
if (!data) {
printk(KERN_ERR DRVNAME ": Insufficient memory for BMC "
"interface.\n");
dev_err(dev, "Insufficient memory for BMC interface.\n");
return;
}

Expand All @@ -471,9 +470,8 @@ static void ibmpex_register_bmc(int iface, struct device *dev)
err = ipmi_create_user(data->interface, &driver_data.ipmi_hndlrs,
data, &data->user);
if (err < 0) {
printk(KERN_ERR DRVNAME ": Error, unable to register user with "
"ipmi interface %d\n",
data->interface);
dev_err(dev, "Unable to register user with IPMI "
"interface %d\n", data->interface);
goto out;
}

Expand All @@ -495,9 +493,9 @@ static void ibmpex_register_bmc(int iface, struct device *dev)
data->hwmon_dev = hwmon_device_register(data->bmc_device);

if (IS_ERR(data->hwmon_dev)) {
printk(KERN_ERR DRVNAME ": Error, unable to register hwmon "
"class device for interface %d\n",
data->interface);
dev_err(data->bmc_device, "Unable to register hwmon "
"device for IPMI interface %d\n",
data->interface);
goto out_user;
}

Expand All @@ -508,7 +506,7 @@ static void ibmpex_register_bmc(int iface, struct device *dev)
/* Now go find all the sensors */
err = ibmpex_find_sensors(data);
if (err) {
printk(KERN_ERR "Error %d allocating memory\n", err);
dev_err(data->bmc_device, "Error %d finding sensors\n", err);
goto out_register;
}

Expand Down Expand Up @@ -561,10 +559,10 @@ static void ibmpex_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data)
struct ibmpex_bmc_data *data = (struct ibmpex_bmc_data *)user_msg_data;

if (msg->msgid != data->tx_msgid) {
printk(KERN_ERR "Received msgid (%02x) and transmitted "
"msgid (%02x) mismatch!\n",
(int)msg->msgid,
(int)data->tx_msgid);
dev_err(data->bmc_device, "Mismatch between received msgid "
"(%02x) and transmitted msgid (%02x)!\n",
(int)msg->msgid,
(int)data->tx_msgid);
ipmi_free_recv_msg(msg);
return;
}
Expand Down

0 comments on commit c6cfcb3

Please sign in to comment.