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:
parent
b4960653d3
commit
dfac61e89c
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue