* Thus battery apis need to be handled as no error state in the case. */
if (device_battery_get_status(&status) == DEVICE_ERROR_NONE &&
status == DEVICE_BATTERY_STATUS_NOT_CHARGING) {
- FPRINTF("[Line : %d][%s] Not Charging" __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] Not Charging", __LINE__, API_NAMESPACE);
return 0;
}
PRINT_RESULT(DEVICE_ERROR_NONE, nRet, "device_battery_is_charging", DeviceGetError(nRet));
- if (bCharging)
- FPRINTF("[Line : %d][%s] Battery is charging" __LINE__, API_NAMESPACE);
- else
- FPRINTF("[Line : %d][%s] Battery is discharging" __LINE__, API_NAMESPACE);
+ if (bCharging){
+ FPRINTF("[Line : %d][%s] Battery is charging", __LINE__, API_NAMESPACE);
+ }
+ else {
+ FPRINTF("[Line : %d][%s] Battery is discharging", __LINE__, API_NAMESPACE);
+ }
return 0;
}