Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad9d7a7f authored by David Woodhouse's avatar David Woodhouse Committed by David S. Miller
Browse files

libertas: fix debug output in lbs_cmd_copyback() function.



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

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ddac4526
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -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);