summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-03-01 10:47:21 +0000
committerJens Arnold <amiconn@rockbox.org>2008-03-01 10:47:21 +0000
commitdfac61e89cf93eb968cc16154f6d643fc5b1360e (patch)
tree07b28f2bc1d3bb2c2641825d6f2c372396fcc775 /apps
parentb4960653d3d3c4544fa2fe68188ed27b6add25c0 (diff)
downloadrockbox-dfac61e89cf93eb968cc16154f6d643fc5b1360e.tar.gz
rockbox-dfac61e89cf93eb968cc16154f6d643fc5b1360e.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c5
1 files changed, 5 insertions, 0 deletions
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 @@
26#include "debug_menu.h" 26#include "debug_menu.h"
27#include "kernel.h" 27#include "kernel.h"
28#include "sprintf.h" 28#include "sprintf.h"
29#include "structec.h"
29#include "action.h" 30#include "action.h"
30#include "debug.h" 31#include "debug.h"
31#include "thread.h" 32#include "thread.h"
@@ -1882,7 +1883,11 @@ static bool dbg_identify_info(void)
1882 int fd = creat("/identify_info.bin"); 1883 int fd = creat("/identify_info.bin");
1883 if(fd >= 0) 1884 if(fd >= 0)
1884 { 1885 {
1886#ifdef ROCKBOX_LITTLE_ENDIAN
1887 ecwrite(fd, ata_get_identify(), SECTOR_SIZE/2, "s", true);
1888#else
1885 write(fd, ata_get_identify(), SECTOR_SIZE); 1889 write(fd, ata_get_identify(), SECTOR_SIZE);
1890#endif
1886 close(fd); 1891 close(fd);
1887 } 1892 }
1888 return false; 1893 return false;