Changeset 5651:b0e163908378 in roaraudio for roard


Ignore:
Timestamp:
09/12/12 16:22:42 (7 years ago)
Author:
phi
Branch:
default
Message:

Added compiler checks for printf() like format strings.

Location:
roard
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • roard/codecfilter_flac.c

    r5624 r5651  
    153153   if ( stream_meta_add(ROAR_STREAM(self->ss)->id, type, "", value) == -1 ) { 
    154154    ROAR_WARN("cf_flac_cb_metadata(..., client_data=%p{ROAR_STREAM(.ss)->id=%i}): Can not add meta data: %s", 
    155               ROAR_STREAM(self->ss)->id, roar_error2str(roar_error)); 
     155              self->ss, ROAR_STREAM(self->ss)->id, roar_error2str(roar_error)); 
    156156   } 
    157157 
  • roard/codecfilter_vorbis.c

    r5625 r5651  
    4848 r = stream_vio_s_read(ROAR_STREAM_SERVER(datasource), ptr, size*nmemb); 
    4949 
    50  ROAR_DBG("cf_vorbis_vfvio_read(ptr=%p, size=%lu, nmemb=%lu, datasource=%p): r=%i", ptr, size, nmemb, datasource, r); 
     50 ROAR_DBG("cf_vorbis_vfvio_read(ptr=%p, size=%lu, nmemb=%lu, datasource=%p): r=%i", ptr, (unsigned long int)size, (unsigned long int)nmemb, datasource, r); 
    5151 
    5252 if ( r == -1 ) { 
    53   ROAR_DBG("cf_vorbis_vfvio_read(ptr=%p, size=%lu, nmemb=%lu, datasource=%p) = 0 // roar_error=%i(%s)", ptr, size, nmemb, datasource, roar_error, roar_error2str(roar_error)); 
     53  ROAR_DBG("cf_vorbis_vfvio_read(ptr=%p, size=%lu, nmemb=%lu, datasource=%p) = 0 // roar_error=%i(%s)", ptr, (unsigned long int)size, (unsigned long int)nmemb, datasource, roar_error, roar_error2str(roar_error)); 
    5454  return 0; 
    5555 } 
     
    6161 r /= size; 
    6262  
    63  ROAR_DBG("cf_vorbis_vfvio_read(ptr=%p, size=%lu, nmemb=%lu, datasource=%p) = %i", ptr, size, nmemb, datasource, r); 
     63 ROAR_DBG("cf_vorbis_vfvio_read(ptr=%p, size=%lu, nmemb=%lu, datasource=%p) = %i", ptr, (unsigned long int)size, (unsigned long int)nmemb, datasource, r); 
    6464 return r; 
    6565} 
     
    289289 } 
    290290 
    291  ROAR_DBG("ov_read(*) = %i", done); 
     291 ROAR_DBG("ov_read(*) = %li", (long int)done); 
    292292 
    293293 if ( done == 0 ) { 
  • roard/lib.c

    r5619 r5651  
    3232 size_t i; 
    3333 
    34  ROAR_WARN("lib_run_bg(cmd='%s', ...): This function should never be called. Contact devels."); 
     34 ROAR_WARN("lib_run_bg(cmd='%s', ...): This function should never be called. Contact devels.", cmd); 
    3535 
    3636 child = roar_fork(NULL); 
  • roard/midi.c

    r5417 r5651  
    823823 
    824824  if ( streams_get_flag(g_midi_clock.stream, ROAR_FLAG_SYNC) ) { 
    825    ROAR_DBG("midi_clock_tick(void): TICK! (nt=%lu)", g_midi_clock.nt); 
     825   ROAR_DBG("midi_clock_tick(void): TICK! (nt=%lu)", (unsigned long int)g_midi_clock.nt); 
    826826   if ( midi_new_bufmes(&buf, &mes) == -1 ) { 
    827827    ROAR_ERR("midi_clock_tick(void): Can not create Clock-Tick-Message"); 
     
    839839   ss->state = ROAR_STREAMSTATE_OLD; 
    840840  } else { 
    841    ROAR_DBG("midi_clock_tick(void): silent tick. (nt=%lu)", g_midi_clock.nt); 
     841   ROAR_DBG("midi_clock_tick(void): silent tick. (nt=%lu)", (unsigned long int)g_midi_clock.nt); 
    842842  } 
    843843 } 
  • roard/roard.c

    r5624 r5651  
    977977   protoname = roar_proto2str(g_listen[i].proto); 
    978978   if ( protoname == NULL ) { 
    979     ROAR_ERR("check_listen(void): protocol %i is unknown (protocol ID not assigned?)."); 
     979    ROAR_ERR("check_listen(void): protocol %i is unknown (protocol ID not assigned?).", g_listen[i].proto); 
    980980   } else { 
    981981    ROAR_DBG("check_listen(void): Unknown protocol %s(%i) is used.", protoname, g_listen[i].proto); 
     
    12261226  if ( roar_x11_delete_prop(x11con, "ROAR_SERVER") == -1 ) { 
    12271227   ret = -1; 
    1228    ROAR_ERR("Error while unregistereing from X11", ROAR_DBG_INFO_INFO); 
     1228   ROAR_ERR("Error while unregistereing from X11"); 
    12291229  } else { 
    12301230   ROAR_INFO("Successfully unregistered from X11", ROAR_DBG_INFO_INFO); 
     
    12331233  if ( roar_x11_set_prop(x11con, "ROAR_SERVER", sockname) == -1 ) { 
    12341234   ret = -1; 
    1235    ROAR_ERR("Error while registereing to X11", ROAR_DBG_INFO_INFO); 
     1235   ROAR_ERR("Error while registereing to X11"); 
    12361236  } else { 
    12371237   ROAR_INFO("Successfully registered to X11", ROAR_DBG_INFO_INFO); 
Note: See TracChangeset for help on using the changeset viewer.