提交 a4f6bbb3 编写于 作者: P Peter Jones 提交者: James Ketrenos

Make all the places the firmware fails to load showerrors (in decimal,

so you can cross-reference errno.h easily).
Signed-off-by: NPeter Jones <pjones@redhat.com>
Signed-off-by: NJames Ketrenos <jketreno@linux.intel.com>
上级 054b08d4
...@@ -3304,7 +3304,7 @@ static int ipw_load(struct ipw_priv *priv) ...@@ -3304,7 +3304,7 @@ static int ipw_load(struct ipw_priv *priv)
rc = ipw_load_firmware(priv, bootfw->data + sizeof(struct fw_header), rc = ipw_load_firmware(priv, bootfw->data + sizeof(struct fw_header),
bootfw->size - sizeof(struct fw_header)); bootfw->size - sizeof(struct fw_header));
if (rc < 0) { if (rc < 0) {
IPW_ERROR("Unable to load boot firmware\n"); IPW_ERROR("Unable to load boot firmware: %d\n", rc);
goto error; goto error;
} }
...@@ -3327,7 +3327,7 @@ static int ipw_load(struct ipw_priv *priv) ...@@ -3327,7 +3327,7 @@ static int ipw_load(struct ipw_priv *priv)
rc = ipw_load_ucode(priv, ucode->data + sizeof(struct fw_header), rc = ipw_load_ucode(priv, ucode->data + sizeof(struct fw_header),
ucode->size - sizeof(struct fw_header)); ucode->size - sizeof(struct fw_header));
if (rc < 0) { if (rc < 0) {
IPW_ERROR("Unable to load ucode\n"); IPW_ERROR("Unable to load ucode: %d\n", rc);
goto error; goto error;
} }
...@@ -3339,7 +3339,7 @@ static int ipw_load(struct ipw_priv *priv) ...@@ -3339,7 +3339,7 @@ static int ipw_load(struct ipw_priv *priv)
sizeof(struct fw_header), sizeof(struct fw_header),
firmware->size - sizeof(struct fw_header)); firmware->size - sizeof(struct fw_header));
if (rc < 0) { if (rc < 0) {
IPW_ERROR("Unable to load firmware\n"); IPW_ERROR("Unable to load firmware: %d\n", rc);
goto error; goto error;
} }
...@@ -10958,7 +10958,7 @@ static int ipw_up(struct ipw_priv *priv) ...@@ -10958,7 +10958,7 @@ static int ipw_up(struct ipw_priv *priv)
* Also start the clocks. */ * Also start the clocks. */
rc = ipw_load(priv); rc = ipw_load(priv);
if (rc) { if (rc) {
IPW_ERROR("Unable to load firmware: 0x%08X\n", rc); IPW_ERROR("Unable to load firmware: %d\n", rc);
return rc; return rc;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册