From a3911906d118eeecc14616df49bfca90f5ec6076 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 6 Mar 2006 15:13:51 +0000 Subject: Added version info on pj_init() git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@298 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pj/os_core_unix.c | 5 +++-- pjlib/src/pj/os_core_win32.c | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'pjlib/src/pj') diff --git a/pjlib/src/pj/os_core_unix.c b/pjlib/src/pj/os_core_unix.c index 72e22ef1..a9d1ff5d 100644 --- a/pjlib/src/pj/os_core_unix.c +++ b/pjlib/src/pj/os_core_unix.c @@ -37,7 +37,7 @@ #include -#define THIS_FILE "osunix" +#define THIS_FILE "os_core_unix.c" struct pj_thread_t { @@ -111,7 +111,8 @@ PJ_DEF(pj_status_t) pj_init(void) pj_str_t guid; pj_status_t rc; - PJ_LOG(5, ("pj_init", "Initializing PJ Library..")); + PJ_LOG(4, (THIS_FILE, "Initializing pjlib %s for Unix..", + PJ_VERSION)); #if PJ_HAS_THREADS /* Init this thread's TLS. */ diff --git a/pjlib/src/pj/os_core_win32.c b/pjlib/src/pj/os_core_win32.c index a7aee215..82155e0f 100644 --- a/pjlib/src/pj/os_core_win32.c +++ b/pjlib/src/pj/os_core_win32.c @@ -39,6 +39,8 @@ # include #endif +#define THIS_FILE "os_core_win32.c" + /* * Implementation of pj_thread_t. */ @@ -129,6 +131,9 @@ PJ_DEF(pj_status_t) pj_init(void) pj_str_t guid; pj_status_t rc; + PJ_LOG(4,(THIS_FILE, "Initializing pjlib %s for win32", + PJ_VERSION)); + /* Init Winsock.. */ if (WSAStartup(MAKEWORD(2,0), &wsa) != 0) { return PJ_RETURN_OS_ERROR(WSAGetLastError()); -- cgit v1.2.3