Issue: The statements in the default case are never executed.
Solution: Removal of the retv statement will solve the issue.
Change-Id: I74cc0d357acbb7bc5ce986ef532f5684b3ab74fa
Signed-off-by: rohit.singh <rohit.singh@samsung.com>
const char *_uam_product_event_to_str(unsigned int event)
{
- retv_if(UAM_PRODUCT_EVENT_MAX <= event, NULL);
-
switch (event) {
CASE_TO_STR(UAM_PRODUCT_EVENT_TEST)
default:
const char *_uam_event_to_str(unsigned int event)
{
- retv_if(UAM_EVENT_MAX <= event, NULL);
-
switch (event) {
CASE_TO_STR(UAM_EVENT_USER_ADDED)
CASE_TO_STR(UAM_EVENT_USER_REMOVED)
CASE_TO_STR(UAM_EVENT_SERVICE_REGISTERED)
CASE_TO_STR(UAM_EVENT_SERVICE_UNREGISTERED)
CASE_TO_STR(UAM_EVENT_SENSOR_STATUS_CHANGED)
+ CASE_TO_STR(UAM_EVENT_DAEMON_TERMINATED)
default:
return "UNKNOWN ERROR";
}
const char *_uam_manager_product_event_to_str(unsigned int event)
{
- retv_if(UAM_PRODUCT_EVENT_MAX <= event, NULL);
-
switch (event) {
CASE_TO_STR(UAM_PRODUCT_EVENT_TEST)
default:
const char *_uam_manager_event_to_str(unsigned int event)
{
- retv_if(UAM_EVENT_MAX <= event, NULL);
-
switch (event) {
CASE_TO_STR(UAM_EVENT_USER_ADDED)
CASE_TO_STR(UAM_EVENT_USER_REMOVED)
CASE_TO_STR(UAM_EVENT_SERVICE_REGISTERED)
CASE_TO_STR(UAM_EVENT_SERVICE_UNREGISTERED)
CASE_TO_STR(UAM_EVENT_SENSOR_STATUS_CHANGED)
+ CASE_TO_STR(UAM_EVENT_DAEMON_TERMINATED)
default:
return "UNKNOWN ERROR";
}