Changeset 1329:1e617b6b0d30 in roaraudio


Ignore:
Timestamp:
03/23/09 02:39:11 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed memory access violation, done some ROAR_WARN() -> ROAR_DBG()s

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_dstr.c

    r1328 r1329  
    243243  } 
    244244 
    245   ROAR_WARN("roar_vio_open_dstr_vio(*): name='%s', opts='%s', dst='%s'", name, opts, dst); 
     245  ROAR_DBG("roar_vio_open_dstr_vio(*): name='%s', opts='%s', dst='%s'", name, opts, dst); 
    246246 
    247247  if ( (type = roar_vio_dstr_get_type(name)) == -1 ) { 
     
    249249  } 
    250250 
    251   ROAR_WARN("roar_vio_open_dstr_vio(*): type=0x%.4x(%s)", type, roar_vio_dstr_get_name(type)); 
     251  ROAR_DBG("roar_vio_open_dstr_vio(*): type=0x%.4x(%s)", type, roar_vio_dstr_get_name(type)); 
    252252 
    253253  chain[cc].type     = type; 
     
    312312 for (i = len; i >= 0; i--) { 
    313313  c    = &chain[i]; 
    314   next = &chain[i-1]; 
     314 
     315  if ( i > 0 ) { 
     316   next = &chain[i-1]; 
     317  } else { 
     318   next = NULL; 
     319 
     320   if ( c->type != ROAR_VIO_DSTR_OBJT_INTERNAL ) 
     321    return -1; 
     322  } 
    315323 
    316324  memset(tmp, 0, sizeof(tmp)); 
     
    398406  } 
    399407 
    400   ROAR_WARN("roar_vio_dstr_set_defaults(*): i=%i, c->type=0x%.4x(%s): next->def=%p, next->def->type=%i", i, 
    401                    c->type & 0xFFFF, roar_vio_dstr_get_name(c->type), 
    402                    next->def, next->def == NULL ? -1 : next->def->type); 
     408  if ( next != NULL ) { 
     409   ROAR_DBG("roar_vio_dstr_set_defaults(*): i=%i, c->type=0x%.4x(%s): next->def=%p, next->def->type=%i", i, 
     410                    c->type & 0xFFFF, roar_vio_dstr_get_name(c->type), 
     411                    next->def, next->def == NULL ? -1 : next->def->type); 
     412  } else { 
     413   ROAR_DBG("roar_vio_dstr_set_defaults(*): i=%i, c->type=0x%.4x(%s): next=NULL", i, 
     414                    c->type & 0xFFFF, roar_vio_dstr_get_name(c->type)); 
     415  } 
    403416 } 
    404417 
     
    425438  return -1; 
    426439 
    427  ROAR_WARN("roar_vio_dstr_build_chain(*): chain=%p", chain); 
     440 ROAR_DBG("roar_vio_dstr_build_chain(*): chain=%p", chain); 
    428441 
    429442 if ( (def = chain->def) != NULL ) { 
Note: See TracChangeset for help on using the changeset viewer.