Changeset 5651:b0e163908378 in roaraudio for libroar


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

Added compiler checks for printf() like format strings.

Location:
libroar
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • libroar/auth.c

    r5381 r5651  
    169169 if ( (ret = roar_req2(con, &mes, &data, &error_frame)) == -1 ) { 
    170170  authmes->type = -1; 
    171   ROAR_DBG("roar_auth_ask_server(con=%p, authmes=%p) = -1 // next: -1", con, authmes, authmes->type); 
     171  ROAR_DBG("roar_auth_ask_server(con=%p, authmes=%p) = -1 // next: -1", con, authmes); 
    172172  return -1; 
    173173 } 
  • libroar/buffer.c

    r5647 r5651  
    191191 
    192192  if ( cur->refc == 0 ) { 
    193    ROAR_WARN("roar_buffer_unref(buf=%p): Ref counter for buffer at %p is wrong. assuming one.", cur); 
     193   ROAR_WARN("roar_buffer_unref(buf=%p): Ref counter for buffer at %p is wrong. assuming one.", cur, cur); 
    194194   cur->refc = 1; 
    195195   roar_panic(ROAR_FATAL_ERROR_MEMORY_CORRUPTION, NULL); 
  • libroar/passwordapi.c

    r5381 r5651  
    4444 
    4545 if ( prompt == NULL ) { 
    46   ROAR_WARN("roar_passwd_simple_ask_pw(pw=%p, prompt=NULL, cachetoken='%s'): No prompt given. This may be a bug in application."); 
     46  ROAR_WARN("roar_passwd_simple_ask_pw(pw=%p, prompt=NULL, cachetoken='%s'): No prompt given. This may be a bug in application.", pw, cachetoken); 
    4747  prompt = "Please enter Password"; 
    4848 } 
  • libroar/roardl.c

    r5584 r5651  
    521521 (void)type; 
    522522 
    523  ROAR_DBG("roar_dl_getsym(lhandle=%p, sym='%s', type=%i): errno=%s(%i), dlerror()='%s'", lhandle, sym, type, ret, strerror(errno), errno, dlerror()); 
     523 ROAR_DBG("roar_dl_getsym(lhandle=%p, sym='%s', type=%i): ret=%p, errno=%s(%i), dlerror()='%s'", lhandle, sym, type, ret, strerror(errno), errno, dlerror()); 
    524524 ROAR_DBG("roar_dl_getsym(lhandle=%p, sym='%s', type=%i) = %p", lhandle, sym, type, ret); 
    525525 
  • libroar/vio_dstr.c

    r5408 r5651  
    391391   break; 
    392392  default: 
    393     ROAR_DBG("roar_vio_open_default(calls=%p, def=%p, opts='%s') = -1 // error=NOTSUP", calls, def, opts, (int)def->type); 
     393    ROAR_DBG("roar_vio_open_default(calls=%p, def=%p, opts='%s') = -1 // error=NOTSUP", calls, def, opts); 
    394394    roar_err_set(ROAR_ERROR_NOTSUP); 
    395395    return -1; 
  • libroar/vio_zlib.c

    r5388 r5651  
    187187   return -1; 
    188188 
    189   ROAR_DBG("roar_vio_zlib_read(vio=%p, buf=%p, count=%llu) = ?", vio, buf, (long long unsigned)count, self->inbuf); 
     189  ROAR_DBG("roar_vio_zlib_read(vio=%p, buf=%p, count=%llu) = ?", vio, buf, (long long unsigned)count); 
    190190 
    191191  self->decompressor.next_out  = buf; 
  • libroar/vs.c

    r5414 r5651  
    194194      } 
    195195     } else { 
    196       ROAR_WARN("_handle_async_req(vss=%p, error=%p): Got unexpected reply for command GET_STREAM_PARA, subcommand", vss, error, subcmd); 
     196      ROAR_WARN("_handle_async_req(vss=%p, error=%p): Got unexpected reply for command GET_STREAM_PARA, subcommand %i", vss, error, subcmd); 
    197197     } 
    198198    break; 
Note: See TracChangeset for help on using the changeset viewer.