Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: src/shared/platform/nacl_log.h

Issue 8825007: Native Client side changes for debugging support: stdout/err -> postmessage. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « SConstruct ('k') | src/trusted/desc/nacl_desc_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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__ */
OLDNEW
« no previous file with comments | « SConstruct ('k') | src/trusted/desc/nacl_desc_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698