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
This commit is contained in:
Jens Arnold 2008-03-01 10:47:21 +00:00
parent b4960653d3
commit dfac61e89c

View file

@ -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;