From f1435229e4ee872135f3745f37db32477714619a Mon Sep 17 00:00:00 2001 From: philburk Date: Sat, 1 Sep 2012 21:16:25 +0000 Subject: [PATCH] Fix fprintf format for long int. --- examples/paex_write_sine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/paex_write_sine.c b/examples/paex_write_sine.c index 31ec842..f5ead3f 100644 --- a/examples/paex_write_sine.c +++ b/examples/paex_write_sine.c @@ -158,7 +158,7 @@ error: if( err == paUnanticipatedHostError ) { const PaHostErrorInfo *hostErrorInfo = Pa_GetLastHostErrorInfo(); - fprintf( stderr, "Host API error = #%d, hostApiType = %d\n", hostErrorInfo->errorCode, hostErrorInfo->hostApiType ); + fprintf( stderr, "Host API error = #%ld, hostApiType = %d\n", hostErrorInfo->errorCode, hostErrorInfo->hostApiType ); fprintf( stderr, "Host API error = %s\n", hostErrorInfo->errorText ); } Pa_Terminate(); -- 2.43.0