projects
/
platform
/
core
/
system
/
libstorage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
50f8d81
)
Fix enum for sdcard and usb on storage_get_type_dev
23/97423/1
accepted/tizen/3.0/common/20161121.140942
accepted/tizen/3.0/ivi/20161121.073707
accepted/tizen/3.0/mobile/20161121.073614
accepted/tizen/3.0/tv/20161121.073632
accepted/tizen/3.0/wearable/20161121.073652
submit/tizen_3.0/20161118.040200
author
pr.jung
<pr.jung@samsung.com>
Mon, 14 Nov 2016 06:59:48 +0000
(15:59 +0900)
committer
pr.jung
<pr.jung@samsung.com>
Mon, 14 Nov 2016 06:59:48 +0000
(15:59 +0900)
Change-Id: Ie53cf3079cc3decc5aff560a380b81ce671f6870
Signed-off-by: pr.jung <pr.jung@samsung.com>
src/storage-inhouse.c
patch
|
blob
|
history
diff --git
a/src/storage-inhouse.c
b/src/storage-inhouse.c
index
72eddac
..
7b89923
100755
(executable)
--- a/
src/storage-inhouse.c
+++ b/
src/storage-inhouse.c
@@
-210,7
+210,10
@@
API int storage_get_type_dev(int storage_id, storage_type_e *type, storage_dev_e
goto out;
}
- *dev = ext_dev->type;
+ if (ext_dev->type == STORAGE_EXT_SCSI)
+ *dev = STORAGE_DEV_EXT_USB_MASS_STORAGE;
+ else if (ext_dev->type == STORAGE_EXT_MMC)
+ *dev = STORAGE_DEV_EXT_SDCARD;
ret = STORAGE_ERROR_NONE;
_I("type: %d(internal:0, external:1) dev: %d(sdcard: 1001, usb: 1002)", *type, *dev);