Changeset f3e2663 in mainline for uspace/lib/drv/generic/log.c
- Timestamp:
- 2011-04-03T11:17:45Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 106743d
- Parents:
- 10eb754 (diff), b2a081ae (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
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/log.c
r10eb754 rf3e2663 1 1 /* 2 * Copyright (c) 20 05 Sergey Bondari2 * Copyright (c) 2011 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup arm3229 /** @addtogroup libdrv 30 30 * @{ 31 31 */ 32 /** @file 33 * @brief Memory manipulating functions declarations. 32 33 #include <io/log.h> 34 #include <stdarg.h> 35 36 #include <ddf/log.h> 37 38 /** Initialize the logging system. 39 * 40 * @param drv_name Driver name, will be printed as part of message 41 * @param level Minimum message level to print 34 42 */ 43 int ddf_log_init(const char *drv_name, log_level_t level) 44 { 45 return log_init(drv_name, level); 46 } 35 47 36 #ifndef KERN_arm32_MEMSTR_H_ 37 #define KERN_arm32_MEMSTR_H_ 48 /** Log a driver message. 49 * 50 * @param level Message verbosity level. Message is only printed 51 * if verbosity is less than or equal to current 52 * reporting level. 53 * @param fmt Format string (no trailing newline) 54 */ 55 void ddf_msg(log_level_t level, const char *fmt, ...) 56 { 57 va_list args; 38 58 39 #define memcpy(dst, src, cnt) __builtin_memcpy((dst), (src), (cnt)) 40 41 extern void memsetw(void *, size_t, uint16_t); 42 extern void memsetb(void *, size_t, uint8_t); 43 44 #endif 59 va_start(args, fmt); 60 log_msgv(level, fmt, args); 61 va_end(args); 62 } 45 63 46 64 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.