diff options
author | Vencislav Atanasov <user890104@freemyipod.org> | 2024-06-23 07:43:12 +0300 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-23 07:29:15 -0400 |
commit | 4ea3732bd75d4480c5cb7690eba442099a1d4148 (patch) | |
tree | b9844fbe26449544f7aa19cfe1def54f00cae321 | |
parent | 9c458bbb0daa10a39c10ade69d3cc9b37a1267e0 (diff) | |
download | rockbox-4ea3732bd7.tar.gz rockbox-4ea3732bd7.zip |
Add ATA serial number to Disk info debug menu
Change-Id: I73cc3d85ac28c7bd090859b6c19a5b67a41cfa04
-rw-r--r-- | apps/debug_menu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 39dd77f48f..2b14de8714 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -1391,6 +1391,13 @@ static int disk_callback(int btn, struct gui_synclist *lists) for (i=39; i && buf[i]==' '; i--) buf[i] = 0; simplelist_addline("Model: %s", buf); + for (i=0; i < 10; i++) + ((unsigned short*)buf)[i]=htobe16(identify_info[i+10]); + buf[20]=0; + /* kill trailing space */ + for (i=19; i && buf[i]==' '; i--) + buf[i] = 0; + simplelist_addline("Serial number: %s", buf); for (i=0; i < 4; i++) ((unsigned short*)buf)[i]=htobe16(identify_info[i+23]); buf[8]=0; |