Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / platform / logging / impl / android / Logging.cpp
1 /* See Project chip LICENSE file for licensing information. */
2
3 #include "platform/logging/LogV.h"
4 #include "support/logging/Constants.h"
5
6 #include <android/log.h>
7
8 namespace chip {
9 namespace Logging {
10 namespace Platform {
11
12 void LogV(const char * module, uint8_t category, const char * msg, va_list v)
13 {
14     int priority = (category == kLogCategory_Error) ? ANDROID_LOG_ERROR : ANDROID_LOG_DEBUG;
15     __android_log_vprint(priority, module, msg, v);
16 }
17
18 } // namespace Platform
19 } // namespace Logging
20 } // namespace chip