Changeset 407 for trunk/kernel/kern/printk.h
- Timestamp:
- Nov 7, 2017, 3:08:12 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/printk.h
r406 r407 102 102 char * format , ... ); 103 103 104 #define panic(fmt, ...) _panic(" [PANIC] %s(): " fmt "\n", __func__, ##__VA_ARGS__)104 #define panic(fmt, ...) _panic("\n[PANIC] %s(): " fmt "\n", __func__, ##__VA_ARGS__) 105 105 106 106 /////////////////////////////////////////////////////////////////////////////////// … … 108 108 /////////////////////////////////////////////////////////////////////////////////// 109 109 110 #if CONFIG_CHDEV_DEBUG 111 #define chdev_dmsg(...) if(hal_time_stamp() > CONFIG_CHDEV_DEBUG) printk(__VA_ARGS__) 112 #else 113 #define chdev_dmsg(...) 114 #endif 115 110 116 #if CONFIG_CLUSTER_DEBUG 111 117 #define cluster_dmsg(...) if(hal_time_stamp() > CONFIG_CLUSTER_DEBUG) printk(__VA_ARGS__) … … 186 192 #endif 187 193 194 #if CONFIG_GRPC_DEBUG 195 #define grpc_dmsg(...) if(hal_time_stamp() > CONFIG_GRPC_DEBUG) printk(__VA_ARGS__) 196 #else 197 #define grpc_dmsg(...) 198 #endif 199 188 200 #if CONFIG_IDLE_DEBUG 189 201 #define idle_dmsg(...) if(hal_time_stamp() > CONFIG_IDLE_DEBUG) printk(__VA_ARGS__) … … 234 246 #endif 235 247 248 #if CONFIG_MMAP_DEBUG 249 #define mmap_dmsg(...) if(hal_time_stamp() > CONFIG_MMAP_DEBUG) printk(__VA_ARGS__) 250 #else 251 #define mmap_dmsg(...) 252 #endif 253 236 254 #if CONFIG_MMC_DEBUG 237 255 #define mmc_dmsg(...) if(hal_time_stamp() > CONFIG_MMC_DEBUG) printk(__VA_ARGS__) … … 264 282 #endif 265 283 284 #if CONFIG_READ_DEBUG 285 #define read_dmsg(...) if(hal_time_stamp() > CONFIG_READ_DEBUG) printk(__VA_ARGS__) 286 #else 287 #define read_dmsg(...) 288 #endif 289 266 290 #if CONFIG_RPC_DEBUG 267 291 #define rpc_dmsg(...) if(hal_time_stamp() > CONFIG_RPC_DEBUG) printk(__VA_ARGS__) … … 310 334 #else 311 335 #define vmm_dmsg(...) 336 #endif 337 338 #if CONFIG_WRITE_DEBUG 339 #define write_dmsg(...) if(hal_time_stamp() > CONFIG_WRITE_DEBUG) printk(__VA_ARGS__) 340 #else 341 #define write_dmsg(...) 312 342 #endif 313 343
Note: See TracChangeset
for help on using the changeset viewer.