summaryrefslogtreecommitdiff
path: root/api_examples/demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'api_examples/demo.c')
-rw-r--r--api_examples/demo.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/api_examples/demo.c b/api_examples/demo.c
index a8424482ee..69ac318375 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";
}