From: Denis Kenzior Date: Wed, 22 Sep 2010 21:32:55 +0000 (-0500) Subject: unit: Make test-sms less verbose X-Git-Tag: 0.29~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ec4cbac6269be7c363f9c88706d466de33a76c1;p=platform%2Fupstream%2Fofono.git unit: Make test-sms less verbose --- diff --git a/unit/test-sms.c b/unit/test-sms.c index f0089e0..583d508 100644 --- a/unit/test-sms.c +++ b/unit/test-sms.c @@ -1301,17 +1301,19 @@ static void test_sr_assembly() decode_hex_own_buf(sr_pdu3, -1, &pdu_len, 0, pdu); g_assert(sms_decode(pdu, pdu_len, FALSE, 24, &sr3) == TRUE); - g_print("sr1 address: %s, mr: %d\n", + if (g_test_verbose()) { + g_print("sr1 address: %s, mr: %d\n", sms_address_to_string(&sr1.status_report.raddr), sr1.status_report.mr); - g_print("sr2 address: %s, mr: %d\n", + g_print("sr2 address: %s, mr: %d\n", sms_address_to_string(&sr2.status_report.raddr), sr2.status_report.mr); - g_print("sr3 address: %s, mr: %d\n", + g_print("sr3 address: %s, mr: %d\n", sms_address_to_string(&sr3.status_report.raddr), sr3.status_report.mr); + } sms_address_from_string(&addr, "+4915259911630");