summaryrefslogtreecommitdiff
path: root/benchmarks/parsetostruct.upb.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/parsetostruct.upb.c')
-rw-r--r--benchmarks/parsetostruct.upb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmarks/parsetostruct.upb.c b/benchmarks/parsetostruct.upb.c
index f44b650..d360f05 100644
--- a/benchmarks/parsetostruct.upb.c
+++ b/benchmarks/parsetostruct.upb.c
@@ -20,7 +20,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;
}
@@ -76,7 +77,6 @@ static size_t run(int i)
return len;
err:
- fprintf(stderr, "Decode error: ");
- upb_status_print(&status, stderr);
+ fprintf(stderr, "Decode error: %s", upb_status_getstr(&status));
return 0;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback