| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* | 7 /* |
| 8 * NaCl logging module. | 8 * NaCl logging module. |
| 9 * | 9 * |
| 10 * This module is used in many parts of Native Client to generate | 10 * This module is used in many parts of Native Client to generate |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 int detail_level, | 271 int detail_level, |
| 272 char const *fmt, | 272 char const *fmt, |
| 273 ...) ATTRIBUTE_FORMAT_PRINTF(3, 4); | 273 ...) ATTRIBUTE_FORMAT_PRINTF(3, 4); |
| 274 | 274 |
| 275 /* | 275 /* |
| 276 * If non-fatal non-info logging is disabled at compile time, the NaClLog | 276 * If non-fatal non-info logging is disabled at compile time, the NaClLog |
| 277 * family of functions will be invoked only if the level is LOG_FATAL or | 277 * family of functions will be invoked only if the level is LOG_FATAL or |
| 278 * LOG_INFO. | 278 * LOG_INFO. |
| 279 */ | 279 */ |
| 280 | 280 |
| 281 #if !defined(NACL_STANDALONE) | 281 #if !defined(NACL_STANDALONE) && 0 |
| 282 # define NaClLogV(level, fmt, ap) \ | 282 # define NaClLogV(level, fmt, ap) \ |
| 283 do { \ | 283 do { \ |
| 284 int __log_level_temp = (level); \ | 284 int __log_level_temp = (level); \ |
| 285 if (LOG_INFO >= __log_level_temp) \ | 285 if (LOG_INFO >= __log_level_temp) \ |
| 286 NaClLogV_Function(__log_level_temp, fmt, ap); \ | 286 NaClLogV_Function(__log_level_temp, fmt, ap); \ |
| 287 } while (0) | 287 } while (0) |
| 288 # define NaClLog(level, ...) \ | 288 # define NaClLog(level, ...) \ |
| 289 do { \ | 289 do { \ |
| 290 int __log_level_temp = (level); \ | 290 int __log_level_temp = (level); \ |
| 291 if (LOG_INFO >= __log_level_temp) \ | 291 if (LOG_INFO >= __log_level_temp) \ |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 void NaClLog_mu(int detail_level, | 398 void NaClLog_mu(int detail_level, |
| 399 char const *fmt, | 399 char const *fmt, |
| 400 ...) ATTRIBUTE_FORMAT_PRINTF(2, 3); | 400 ...) ATTRIBUTE_FORMAT_PRINTF(2, 3); |
| 401 | 401 |
| 402 void NaClLogTagNext_mu(void); | 402 void NaClLogTagNext_mu(void); |
| 403 | 403 |
| 404 | 404 |
| 405 EXTERN_C_END | 405 EXTERN_C_END |
| 406 | 406 |
| 407 #endif /* NATIVE_CLIENT_SRC_TRUSTED_PLATFORM_NACL_LOG_H__ */ | 407 #endif /* NATIVE_CLIENT_SRC_TRUSTED_PLATFORM_NACL_LOG_H__ */ |
| OLD | NEW |