From 92515c8944079f941a9bb1a2820ade33999c3c74 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 9 Nov 2009 04:09:13 +0000 Subject: Updated ticket #981: pj_perror() and PJ_PERROR() API: - added PJ_PERROR() macro to allow compile time omitting - changed pj_perror() API to allow formatting of the title using printf like format - added a simple test in pjlib-test - updated Doxygen documentation git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2992 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pjlib-test/errno.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pjlib/src/pjlib-test') diff --git a/pjlib/src/pjlib-test/errno.c b/pjlib/src/pjlib-test/errno.c index 61137d2d..d1e980e2 100644 --- a/pjlib/src/pjlib-test/errno.c +++ b/pjlib/src/pjlib-test/errno.c @@ -158,6 +158,10 @@ int errno_test(void) PJ_LOG(3,(THIS_FILE, "...msg for rc=PJ_EBUG, cut at %d chars: '%s'", CUT, errbuf)); + /* Perror */ + pj_perror(3, THIS_FILE, PJ_SUCCESS, "...testing %s", "pj_perror"); + PJ_PERROR(3,(THIS_FILE, PJ_SUCCESS, "...testing %s", "PJ_PERROR")); + return 0; } -- cgit v1.2.3