Azure IoT common library
Fork of azure_c_shared_utility by
Diff: xlogging.c
- Revision:
- 18:6d8a413a4d9a
- Parent:
- 16:18e7ebd42bb2
- Child:
- 20:95abdea56064
--- a/xlogging.c Sun Jan 08 11:12:54 2017 -0800 +++ b/xlogging.c Fri Jan 13 18:41:15 2017 -0800 @@ -19,10 +19,10 @@ switch (log_category) { - case LOG_INFO: + case AZ_LOG_INFO: (void)printf("Info: "); break; - case LOG_ERROR: + case AZ_LOG_ERROR: (void)printf("Error: Time:%.24s File:%s Func:%s Line:%d ", ctime(&t), file, func, line); break; default: @@ -91,7 +91,7 @@ { charBuf[countbuf] = '\0'; hexBuf[countbuf * 3] = '\0'; - LOG(LOG_TRACE, 0, "%p: %s %s", startPos, hexBuf, charBuf); + LOG(AZ_LOG_TRACE, 0, "%p: %s %s", startPos, hexBuf, charBuf); countbuf = 0; startPos = bufAsChar; } @@ -113,7 +113,7 @@ hexBuf[countbuf * 3] = '\0'; /* Print the last line. */ - LOG(LOG_TRACE, 0, "%p: %s %s", startPos, hexBuf, charBuf); + LOG(AZ_LOG_TRACE, 0, "%p: %s %s", startPos, hexBuf, charBuf); } }