SECURE_LOGW(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg); \
} while (0)
+#define thumb_err_slog(fmt, arg...) do { \
+ SECURE_LOGE(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg); \
+ } while (0)
#define ERR_BUF_LENGHT 256
#define thumb_stderror(fmt) do { \
ret = ms_user_get_storage_type(uid, file_full_path, &store_type);
if((ret != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
- thumb_err("origin path(%s) is invalid. err : [%d] store_type [%d]", file_full_path, ret, store_type);
+ thumb_err_slog("origin path(%s) is invalid. err : [%d] store_type [%d]", file_full_path, ret, store_type);
return MS_MEDIA_ERR_INVALID_PARAMETER;
}
err = ms_user_get_storage_type(uid, origin_path, &store_type);
if((err != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
- thumb_err("origin path(%s) is invalid. err : [%d] store_type [%d]", origin_path, err, store_type);
+ thumb_err_slog("origin path(%s) is invalid. err : [%d] store_type [%d]", origin_path, err, store_type);
return MS_MEDIA_ERR_INVALID_PARAMETER;
}
err = ms_user_get_storage_type(uid, origin_path, &store_type);
if((err != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
- thumb_err("origin path(%s) is invalid. err : [%d] store_type [%d]", origin_path, err, store_type);
+ thumb_err_slog("origin path(%s) is invalid. err : [%d] store_type [%d]", origin_path, err, store_type);
return MS_MEDIA_ERR_INVALID_PARAMETER;
}