Skip to content

Commit

Permalink
fix incorrect use of va_end()
Browse files Browse the repository at this point in the history
This was probably an accidental duplication, causing masking of vfprintf().

Signed-off-by: Moritz Barsnick <[email protected]>
  • Loading branch information
barsnick committed Jan 9, 2025
1 parent e33b401 commit 3642712
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/utils/vk_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ void vkPrint( const char* msg, ... )
{
va_list ap;
va_start( ap, msg );
va_end( ap );
fprintf( stdout, "===%s:%d=== ", qPrintable( VkCfg::appName() ), ( int )getpid() );
vfprintf( stdout, msg, ap );
va_end( ap );
Expand All @@ -66,7 +65,6 @@ void vkPrintErr( const char* msg, ... )
{
va_list ap;
va_start( ap, msg );
va_end( ap );
fprintf( stderr, "===%s:%d=== ", qPrintable( VkCfg::appName() ), ( int )getpid() );
vfprintf( stderr, msg, ap );
va_end( ap );
Expand All @@ -81,7 +79,6 @@ void vkDebug( const char* msg, ... )
#ifdef DEBUG_ON
va_list ap;
va_start( ap, msg );
va_end( ap );
fprintf( stderr, "===%s:%d=== ", qPrintable( VkCfg::appName() ), ( int )getpid() );
vfprintf( stderr, msg, ap );
va_end( ap );
Expand Down

0 comments on commit 3642712

Please sign in to comment.