diff options
author | Sharvil Nanavati <sharvil@google.com> | 2014-12-23 23:08:58 -0800 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2015-03-16 16:51:40 -0700 |
commit | 44802768c447ab480d4227b3a852a97d923b816d (patch) | |
tree | 52f2bdda1fa934f89af3b2161a26cb47170f8567 /stack/rfcomm/port_api.c | |
parent | 3b24dfb998e76b389b9c850f53e0c8016383f2b8 (diff) | |
download | android_system_bt-44802768c447ab480d4227b3a852a97d923b816d.tar.gz android_system_bt-44802768c447ab480d4227b3a852a97d923b816d.tar.bz2 android_system_bt-44802768c447ab480d4227b3a852a97d923b816d.zip |
Add platform-independent logging macros to OSI.
These macros should replace ALOG* and the various trace macros
used throughout bluedroid. This change eliminates all uses of the
ALOG* macros in favor of the new ones.
Diffstat (limited to 'stack/rfcomm/port_api.c')
-rw-r--r-- | stack/rfcomm/port_api.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stack/rfcomm/port_api.c b/stack/rfcomm/port_api.c index 7b746e43f..bfd68bd3d 100644 --- a/stack/rfcomm/port_api.c +++ b/stack/rfcomm/port_api.c @@ -34,15 +34,15 @@ #include "rfc_int.h" #include "l2c_api.h" #include "sdp_api.h" +#include "osi/include/log.h" /* duration of break in 200ms units */ #define PORT_BREAK_DURATION 1 -#include <cutils/log.h> -#define info(fmt, ...) ALOGI ("%s: " fmt,__FUNCTION__, ## __VA_ARGS__) -#define debug(fmt, ...) ALOGD ("%s: " fmt,__FUNCTION__, ## __VA_ARGS__) -#define error(fmt, ...) ALOGE ("## ERROR : %s: " fmt "##",__FUNCTION__, ## __VA_ARGS__) -#define asrt(s) if(!(s)) ALOGE ("## %s assert %s failed at line:%d ##",__FUNCTION__, #s, __LINE__) +#define info(fmt, ...) LOG_INFO ("%s: " fmt,__FUNCTION__, ## __VA_ARGS__) +#define debug(fmt, ...) LOG_DEBUG ("%s: " fmt,__FUNCTION__, ## __VA_ARGS__) +#define error(fmt, ...) LOG_ERROR ("## ERROR : %s: " fmt "##",__FUNCTION__, ## __VA_ARGS__) +#define asrt(s) if(!(s)) LOG_ERROR ("## %s assert %s failed at line:%d ##",__FUNCTION__, #s, __LINE__) /* Mapping from PORT_* result codes to human readable strings. */ static const char *result_code_strings[] = { |