projects
/
platform
/
core
/
api
/
device.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
069d373
)
common: Add DEVICE_ERROR_INVALID_PARAMETER handling
31/304231/1
author
Yunhee Seo
<yuni.seo@samsung.com>
Wed, 10 Jan 2024 10:59:43 +0000
(19:59 +0900)
committer
Yunhee Seo
<yuni.seo@samsung.com>
Fri, 12 Jan 2024 10:38:38 +0000
(19:38 +0900)
To distinguish DEVICE_ERROR_INVALID_PARAMETER type,
this switch handling code is added to errno_to_device_error().
Change-Id: If78653a863d1ce4daac8aaf1e3923e7c7eae21b3
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/common.h
patch
|
blob
|
history
diff --git
a/src/common.h
b/src/common.h
index 819459c089999221f7965d3e55bf93495ba49650..7a79356f0d4a1f18bf53da56a29ffea7b86c40f8 100644
(file)
--- a/
src/common.h
+++ b/
src/common.h
@@
-49,6
+49,8
@@
static inline int errno_to_device_error(int err)
return DEVICE_ERROR_RESOURCE_BUSY;
case -ENOTSUP:
return DEVICE_ERROR_NOT_SUPPORTED;
+ case -EINVAL:
+ return DEVICE_ERROR_INVALID_PARAMETER;
default:
return DEVICE_ERROR_OPERATION_FAILED;
}