Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
-void pb_log(const char *fmt, ...);
+void __attribute__ ((format (printf, 1, 2))) pb_log(const char *fmt, ...);
void pb_log_set_stream(FILE *stream);
FILE * pb_log_get_stream(void);
void pb_log_always_flush(int state);
void pb_log_set_stream(FILE *stream);
FILE * pb_log_get_stream(void);
void pb_log_always_flush(int state);
result = os_area_fixed_read(&fc->header, &fc->params, fc->dev);
if (result) {
result = os_area_fixed_read(&fc->header, &fc->params, fc->dev);
if (result) {
- pb_log("%s: os_area_fixed_read failed: %s\n", __func__);
+ pb_log("%s: os_area_fixed_read failed\n", __func__);
result = ps3_flash_open(&fc, "r");
if (result)
result = ps3_flash_open(&fc, "r");
if (result)
result = os_area_db_read(&fc.db, &fc.header, fc.dev);
result = os_area_db_read(&fc.db, &fc.header, fc.dev);
if (result) {
pb_log("%s: os_area_db_read failed: %s\n", __func__,
strerror(errno));
if (result) {
pb_log("%s: os_area_db_read failed: %s\n", __func__,
strerror(errno));
}
sum = result = os_area_db_get(&fc.db, &id_default_item, &tmp);
}
sum = result = os_area_db_get(&fc.db, &id_default_item, &tmp);
if (!result)
values->video_mode = (uint16_t)tmp;
if (!result)
values->video_mode = (uint16_t)tmp;
pb_log("%s: default_item: %x\n", __func__,
(unsigned int)values->default_item);
pb_log("%s: timeout: %u\n", __func__,
(unsigned int)values->timeout);
pb_log("%s: video_mode: %u\n", __func__,
(unsigned int)values->video_mode);
pb_log("%s: default_item: %x\n", __func__,
(unsigned int)values->default_item);
pb_log("%s: timeout: %u\n", __func__,
(unsigned int)values->timeout);
pb_log("%s: video_mode: %u\n", __func__,
(unsigned int)values->video_mode);
return (result || sum) ? -1 : 0;
}
return (result || sum) ? -1 : 0;
}
path = strchr(p, '/');
if (!path) {
path = strchr(p, '/');
if (!path) {
- pb_log("%s: parse path failed '%s'\n", p);
+ pb_log("%s: parse path failed '%s'\n", __func__ , p);