diff options
Diffstat (limited to 'api_examples/demo.c')
-rw-r--r-- | api_examples/demo.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/api_examples/demo.c b/api_examples/demo.c index a842448..69ac318 100644 --- a/api_examples/demo.c +++ b/api_examples/demo.c @@ -226,20 +226,23 @@ void test_dump_si(struct sys_info *si) } } -static char * test_stor_typ(int type) +static char *test_stor_typ(int type) { if (type & DT_STOR_IDE) return "IDE"; + if (type & DT_STOR_MMC) + return "MMC"; + + if (type & DT_STOR_SATA) + return "SATA"; + if (type & DT_STOR_SCSI) return "SCSI"; if (type & DT_STOR_USB) return "USB"; - if (type & DT_STOR_MMC); - return "MMC"; - return "Unknown"; } |