From: Antoni Adaszkiewicz Date: Thu, 12 Jan 2023 14:31:08 +0000 (+0100) Subject: Fix misleading output messages X-Git-Tag: accepted/tizen/unified/20230215.155624~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5015b370561c8e4c94a1ccec8dba46a73ed31942;p=platform%2Fcore%2Fapi%2Fperipheral-io.git Fix misleading output messages Change-Id: I2ccea575a7608f0238e29f06f409f2f102f27cef --- diff --git a/test/peripheral-io-test.c b/test/peripheral-io-test.c index c5bee68..420445a 100644 --- a/test/peripheral-io-test.c +++ b/test/peripheral-io-test.c @@ -76,7 +76,7 @@ static int __get_feature(const char *key, bool *feature) int ret = SYSTEM_INFO_ERROR_NONE; ret = system_info_get_platform_bool(key, feature); if (ret != SYSTEM_INFO_ERROR_NONE) { - printf("[Message] Failed to feature (%s).\n\n", key); + printf("[Message] Failed to get feature (%s).\n\n", key); return PERIPHERAL_ERROR_NOT_SUPPORTED; } return PERIPHERAL_ERROR_NONE; @@ -121,10 +121,9 @@ static int __test_peripheral_init(const char *test_name, const char *key_feature } ret = __get_feature(key_feature, &feature); - if (ret != PERIPHERAL_ERROR_NONE) { - printf("[Message] Feature %s not supported\n", key_feature); + if (ret != PERIPHERAL_ERROR_NONE) return ret; - } + printf("[Message] Feature %s is %s on the device (tests also verify support).\n", key_feature, feature == true ? "supported" : "not supported"); ret = init_fn(model_name, feature); if (ret != PERIPHERAL_ERROR_NONE) {