From 65c07c4340a2c8ce192545f1360c8129946c7139 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 21 Feb 2008 07:53:35 +0000 Subject: Replaced fprintf/printf with err_report() git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1807 74dad513-b988-da41-8d7b-12977e46ad98 --- third_party/srtp/crypto/rng/rand_source.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'third_party') diff --git a/third_party/srtp/crypto/rng/rand_source.c b/third_party/srtp/crypto/rng/rand_source.c index 9867c295..3d01d25a 100644 --- a/third_party/srtp/crypto/rng/rand_source.c +++ b/third_party/srtp/crypto/rng/rand_source.c @@ -98,10 +98,7 @@ rand_source_init(void) { dev_random_fdes = RAND_SOURCE_READY; #else /* no random source available; let the user know */ - if (stderr) - fprintf(stderr, "WARNING: no real random source present!\n"); - else - printf("WARNING: no real random source present!\n"); + err_report(err_level_info, "WARNING: no real random source present!\n"); dev_random_fdes = RAND_SOURCE_READY; #endif return err_status_ok; -- cgit v1.2.3