tools: ffs-test: fix header values endianess
authorMichal Nazarewicz <mina86@mina86.com>
Fri, 13 Jun 2014 13:38:05 +0000 (15:38 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 30 Jun 2014 18:23:58 +0000 (13:23 -0500)
commitf35f71244da6e51db4e1f2c7e318581f498ececf
tree5d8dd08759933b841f96e76d1eb57db0113d1d7d
parent508ccea177ba35cbac382b9873c5cd77985bdf8d
tools: ffs-test: fix header values endianess

It appears that no one ever run ffs-test on a big-endian machine,
since it used cpu-endianess for fs_count and hs_count fields which
should be in little-endian format.  Fix by wrapping the numbers in
cpu_to_le32.

Cc: stable@vger.kernel.org
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
tools/usb/ffs-test.c