From 521ac7a89adb97bcd1781b4131333554ccd4de87 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 27 Aug 2011 20:36:34 -0700 Subject: Refined upb_status. --- benchmarks/parsestream.upb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'benchmarks/parsestream.upb.c') diff --git a/benchmarks/parsestream.upb.c b/benchmarks/parsestream.upb.c index 80f9444..e5f6246 100644 --- a/benchmarks/parsestream.upb.c +++ b/benchmarks/parsestream.upb.c @@ -33,7 +33,8 @@ static bool initialize() upb_symtab *s = upb_symtab_new(); upb_read_descriptorfile(s, MESSAGE_DESCRIPTOR_FILE, &status); if(!upb_ok(&status)) { - upb_status_print(&status, stderr); + fprintf(stderr, "Error reading descriptor: %s\n", + upb_status_getstr(&status)); return false; } @@ -82,7 +83,6 @@ static size_t run(int i) return input_len; err: - fprintf(stderr, "Decode error: "); - upb_status_print(&status, stderr); + fprintf(stderr, "Decode error: %s", upb_status_getstr(&status)); return 0; } -- cgit v1.2.3