libqos: Convert fw_cfg values to host endianness
commit1a63e059de2f2936d2066532b9f8ca22675cf11c
authorAndreas Färber <afaerber@suse.de>
Sun, 28 Apr 2013 16:45:47 +0000 (28 18:45 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 29 Apr 2013 13:28:15 +0000 (29 08:28 -0500)
tree0f2a9e9c3db043dea9cc28351a34cce7612f1786
parent61e477f4c731c4ff3f1a44dbfc55c8a5903c8d52
libqos: Convert fw_cfg values to host endianness

The fw_cfg ABI is Little Endian, so byte-swap the generically read
byte array to host endianness.

This unbreaks the fw_cfg tests on ppc.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Message-id: 1367167547-19931-1-git-send-email-afaerber@suse.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
tests/libqos/fw_cfg.c