libertas: fix debug output in lbs_cmd_copyback() function.

Bad dcbw. Always test on big-endian, or at least use sparse.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
David Woodhouse 2007-12-11 15:22:27 -05:00 committed by David S. Miller
parent ddac452680
commit ad9d7a7f3c

View File

@ -2023,7 +2023,7 @@ void lbs_ps_confirm_sleep(struct lbs_private *priv, u16 psmode)
* @return 0 on success, error on failure * @return 0 on success, error on failure
*/ */
int lbs_cmd_copyback(struct lbs_private *priv, unsigned long extra, int lbs_cmd_copyback(struct lbs_private *priv, unsigned long extra,
struct cmd_header *resp) struct cmd_header *resp)
{ {
struct cmd_header *buf = (void *)extra; struct cmd_header *buf = (void *)extra;
uint16_t copy_len; uint16_t copy_len;
@ -2032,8 +2032,8 @@ int lbs_cmd_copyback(struct lbs_private *priv, unsigned long extra,
copy_len = min(le16_to_cpu(buf->size), le16_to_cpu(resp->size)); copy_len = min(le16_to_cpu(buf->size), le16_to_cpu(resp->size));
lbs_deb_cmd("Copying back %u bytes; command response was %u bytes, " lbs_deb_cmd("Copying back %u bytes; command response was %u bytes, "
"copy back buffer was %u bytes", copy_len, resp->size, "copy back buffer was %u bytes\n", copy_len,
buf->size); le16_to_cpu(resp->size), le16_to_cpu(buf->size));
memcpy(buf, resp, copy_len); memcpy(buf, resp, copy_len);
lbs_deb_leave(LBS_DEB_CMD); lbs_deb_leave(LBS_DEB_CMD);