diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-11-09 04:09:13 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-11-09 04:09:13 +0000 |
commit | 92515c8944079f941a9bb1a2820ade33999c3c74 (patch) | |
tree | e3cea76092d5e326392a350dc01c780f7114483e /pjlib/src/pjlib-test | |
parent | 8bb8512eb7e6e0883964c1f58750d80dd90c6e2d (diff) |
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
Diffstat (limited to 'pjlib/src/pjlib-test')
-rw-r--r-- | pjlib/src/pjlib-test/errno.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |