Changeset b910455 in mainline for uspace/lib/c/include/io/log.h
- Timestamp:
- 2011-04-07T09:46:11Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6639ae1
- Parents:
- f6bffee (diff), 8e80d3f (diff)
 Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
 Use the(diff)links above to see all the changes relative to each parent.
- File:
- 
      - 1 moved
 
 - 
          
  uspace/lib/c/include/io/log.h (moved) (moved from kernel/arch/amd64/include/memstr.h ) (2 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      uspace/lib/c/include/io/log.hrf6bffee rb910455 1 1 /* 2 * Copyright (c) 2005 Sergey Bondari 2 * Copyright (c) 2011 Vojtech Horky 3 * Copyright (c) 2011 Jiri Svoboda 3 4 * All rights reserved. 4 5 * … … 27 28 */ 28 29 29 /** @addtogroup amd6430 /** @addtogroup libc 30 31 * @{ 31 32 */ 32 /** @file33 */34 33 35 #ifndef KERN_amd64_MEMSTR_H_36 #define KERN_amd64_MEMSTR_H_34 #ifndef LIBC_IO_LOG_H_ 35 #define LIBC_IO_LOG_H_ 37 36 38 # define memcpy(dst, src, cnt) __builtin_memcpy((dst), (src), (cnt))37 #include <stdarg.h> 39 38 40 extern void memsetw(void *, size_t, uint16_t); 41 extern void memsetb(void *, size_t, uint8_t); 39 typedef enum { 40 LVL_FATAL, 41 LVL_ERROR, 42 LVL_WARN, 43 LVL_NOTE, 44 LVL_DEBUG, 45 LVL_DEBUG2, 46 47 /** For checking range of values */ 48 LVL_LIMIT 49 } log_level_t; 50 51 extern int log_init(const char *, log_level_t); 52 extern void log_msg(log_level_t, const char *, ...); 53 extern void log_msgv(log_level_t, const char *, va_list); 42 54 43 55 #endif 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
