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. --- tests/test_decoder.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/test_decoder.c') diff --git a/tests/test_decoder.c b/tests/test_decoder.c index e3fc1ea..2f3cc36 100644 --- a/tests/test_decoder.c +++ b/tests/test_decoder.c @@ -22,8 +22,7 @@ int main(int argc, char *argv[]) { upb_status status = UPB_STATUS_INIT; upb_read_descriptor(symtab, desc, desc_len, &status); if (!upb_ok(&status)) { - fprintf(stderr, "Error parsing descriptor: "); - upb_status_print(&status, stderr); + fprintf(stderr, "Error parsing descriptor: %s", upb_status_getstr(&status)); return 1; } free((void*)desc); @@ -59,8 +58,7 @@ int main(int argc, char *argv[]) { upb_decoder_decode(&d, &status); if (!upb_ok(&status)) { - fprintf(stderr, "Error parsing input: "); - upb_status_print(&status, stderr); + fprintf(stderr, "Error parsing input: %s", upb_status_getstr(&status)); } upb_status_uninit(&status); -- cgit v1.2.3