Changeset 176 for trunk

Show
Ignore:
Timestamp:
07/05/07 14:37:42 (17 months ago)
Author:
zany
Message:

replacing perror with DEBUG

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/obexftp/bt_discovery.c

    r171 r176  
    5353  if(num_rsp < 0)  
    5454    { 
    55       perror("Inquiry failed."); 
     55      DEBUG(1, "%s: Inquiry failed", __func__); 
    5656      return NULL; 
    5757    } 
     
    6060  if (dd < 0)  
    6161    { 
    62       perror("HCI device open failed"); 
     62      DEBUG(1, "%s: HCI device open failed", __func__); 
    6363      free(info); 
    6464      return NULL; 
     
    9999  if(sdp_service_search_attr_req(sess, search, SDP_ATTR_REQ_INDIVIDUAL, attrid, &seq) < 0) 
    100100    { 
    101       perror("SDP service search"); 
     101      DEBUG(1, "%s: SDP service search failed", __func__); 
    102102      sdp_close(sess); 
    103103      return -1; 
     
    152152  if(!sess)  
    153153    { 
    154       perror("Failed to connect to SDP server"); 
     154      DEBUG(1, "%s: Failed to connect to SDP server", __func__); 
    155155      return -1; 
    156156    }