From dfac61e89cf93eb968cc16154f6d643fc5b1360e Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 1 Mar 2008 10:47:21 +0000 Subject: Always dump the identify info as big endian for readability and consistency. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16461 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 0f1356dfb9..bb9a00c57b 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -26,6 +26,7 @@ #include "debug_menu.h" #include "kernel.h" #include "sprintf.h" +#include "structec.h" #include "action.h" #include "debug.h" #include "thread.h" @@ -1882,7 +1883,11 @@ static bool dbg_identify_info(void) int fd = creat("/identify_info.bin"); if(fd >= 0) { +#ifdef ROCKBOX_LITTLE_ENDIAN + ecwrite(fd, ata_get_identify(), SECTOR_SIZE/2, "s", true); +#else write(fd, ata_get_identify(), SECTOR_SIZE); +#endif close(fd); } return false; -- cgit v1.2.3