Changeset 406 for trunk/kernel/kern/printk.h
- Timestamp:
- Aug 29, 2017, 12:03:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/printk.h
r389 r406 109 109 110 110 #if CONFIG_CLUSTER_DEBUG 111 #define cluster_dmsg(...) printk(__VA_ARGS__)111 #define cluster_dmsg(...) if(hal_time_stamp() > CONFIG_CLUSTER_DEBUG) printk(__VA_ARGS__) 112 112 #else 113 113 #define cluster_dmsg(...) … … 115 115 116 116 #if CONFIG_CONTEXT_DEBUG 117 #define context_dmsg(...) printk(__VA_ARGS__)117 #define context_dmsg(...) if(hal_time_stamp() > CONFIG_CONTEXT_DEBUG) printk(__VA_ARGS__) 118 118 #else 119 119 #define context_dmsg(...) … … 121 121 122 122 #if CONFIG_CORE_DEBUG 123 #define core_dmsg(...) printk(__VA_ARGS__)123 #define core_dmsg(...) if(hal_time_stamp() > CONFIG_CORE_DEBUG) printk(__VA_ARGS__) 124 124 #else 125 125 #define core_dmsg(...) … … 127 127 128 128 #if CONFIG_DEVFS_DEBUG 129 #define devfs_dmsg(...) printk(__VA_ARGS__)129 #define devfs_dmsg(...) if(hal_time_stamp() > CONFIG_DEVFS_DEBUG) printk(__VA_ARGS__) 130 130 #else 131 131 #define devfs_dmsg(...) … … 133 133 134 134 #if CONFIG_DMA_DEBUG 135 #define dma_dmsg(...) printk(__VA_ARGS__)135 #define dma_dmsg(...) if(hal_time_stamp() > CONFIG_DMA_DEBUG) printk(__VA_ARGS__) 136 136 #else 137 137 #define dma_dmsg(...) … … 139 139 140 140 #if CONFIG_DQDT_DEBUG 141 #define dma_dmsg(...) printk(__VA_ARGS__) 142 #else 143 #define dma_dmsg(...) 144 #endif 145 146 #if CONFIG_DQDT_DEBUG 147 #define dqdt_dmsg(...) printk(__VA_ARGS__) 141 #define dqdt_dmsg(...) if(hal_time_stamp() > CONFIG_DQDT_DEBUG) printk(__VA_ARGS__) 148 142 #else 149 143 #define dqdt_dmsg(...) … … 151 145 152 146 #if CONFIG_ELF_DEBUG 153 #define elf_dmsg(...) printk(__VA_ARGS__)147 #define elf_dmsg(...) if(hal_time_stamp() > CONFIG_ELF_DEBUG) printk(__VA_ARGS__) 154 148 #else 155 149 #define elf_dmsg(...) … … 157 151 158 152 #if CONFIG_EXEC_DEBUG 159 #define exec_dmsg(...) printk(__VA_ARGS__)153 #define exec_dmsg(...) if(hal_time_stamp() > CONFIG_EXEC_DEBUG) printk(__VA_ARGS__) 160 154 #else 161 155 #define exec_dmsg(...) 162 156 #endif 163 157 158 #if CONFIG_EXCP_DEBUG 159 #define excp_dmsg(...) if(hal_time_stamp() > CONFIG_EXCP_DEBUG) printk(__VA_ARGS__) 160 #else 161 #define excp_dmsg(...) 162 #endif 163 164 164 #if CONFIG_FATFS_DEBUG 165 #define fatfs_dmsg(...) printk(__VA_ARGS__)165 #define fatfs_dmsg(...) if(hal_time_stamp() > CONFIG_FATFS_DEBUG) printk(__VA_ARGS__) 166 166 #else 167 167 #define fatfs_dmsg(...) … … 169 169 170 170 #if CONFIG_FBF_DEBUG 171 #define fbf_dmsg(...) printk(__VA_ARGS__)171 #define fbf_dmsg(...) if(hal_time_stamp() > CONFIG_FBF_DEBUG) printk(__VA_ARGS__) 172 172 #else 173 173 #define fbf_dmsg(...) … … 175 175 176 176 #if CONFIG_FORK_DEBUG 177 #define fork_dmsg(...) printk(__VA_ARGS__)177 #define fork_dmsg(...) if(hal_time_stamp() > CONFIG_FORK_DEBUG) printk(__VA_ARGS__) 178 178 #else 179 179 #define fork_dmsg(...) 180 180 #endif 181 181 182 #if CONFIG_GPT_DEBUG 183 #define gpt_dmsg(...) if(hal_time_stamp() > CONFIG_GPT_DEBUG) printk(__VA_ARGS__) 184 #else 185 #define gpt_dmsg(...) 186 #endif 187 182 188 #if CONFIG_IDLE_DEBUG 183 #define idle_dmsg(...) printk(__VA_ARGS__)189 #define idle_dmsg(...) if(hal_time_stamp() > CONFIG_IDLE_DEBUG) printk(__VA_ARGS__) 184 190 #else 185 191 #define idle_dmsg(...) … … 193 199 194 200 #if CONFIG_IRQ_DEBUG 195 #define irq_dmsg(...) printk(__VA_ARGS__)201 #define irq_dmsg(...) if(hal_time_stamp() > CONFIG_IRQ_DEBUG) printk(__VA_ARGS__) 196 202 #else 197 203 #define irq_dmsg(...) … … 199 205 200 206 #if CONFIG_KCM_DEBUG 201 #define kcm_dmsg(...) printk(__VA_ARGS__)207 #define kcm_dmsg(...) if(hal_time_stamp() > CONFIG_KCM_DEBUG) printk(__VA_ARGS__) 202 208 #else 203 209 #define kcm_dmsg(...) … … 205 211 206 212 #if CONFIG_KHM_DEBUG 207 #define khm_dmsg(...) printk(__VA_ARGS__)213 #define khm_dmsg(...) if(hal_time_stamp() > CONFIG_KHM_DEBUG) printk(__VA_ARGS__) 208 214 #else 209 215 #define khm_dmsg(...) … … 211 217 212 218 #if CONFIG_KINIT_DEBUG 213 #define kinit_dmsg(...) printk(__VA_ARGS__)219 #define kinit_dmsg(...) if(hal_time_stamp() > CONFIG_KINIT_DEBUG) printk(__VA_ARGS__) 214 220 #else 215 221 #define kinit_dmsg(...) … … 217 223 218 224 #if CONFIG_KMEM_DEBUG 219 #define kmem_dmsg(...) printk(__VA_ARGS__)225 #define kmem_dmsg(...) if(hal_time_stamp() > CONFIG_KMEM_DEBUG) printk(__VA_ARGS__) 220 226 #else 221 227 #define kmem_dmsg(...) … … 223 229 224 230 #if CONFIG_MAPPER_DEBUG 225 #define mapper_dmsg(...) printk(__VA_ARGS__)231 #define mapper_dmsg(...) if(hal_time_stamp() > CONFIG_MAPPER_DEBUG) printk(__VA_ARGS__) 226 232 #else 227 233 #define mapper_dmsg(...) … … 229 235 230 236 #if CONFIG_MMC_DEBUG 231 #define mmc_dmsg(...) printk(__VA_ARGS__)237 #define mmc_dmsg(...) if(hal_time_stamp() > CONFIG_MMC_DEBUG) printk(__VA_ARGS__) 232 238 #else 233 239 #define mmc_dmsg(...) … … 235 241 236 242 #if CONFIG_NIC_DEBUG 237 #define nic_dmsg(...) printk(__VA_ARGS__)243 #define nic_dmsg(...) if(hal_time_stamp() > CONFIG_NIC_DEBUG) printk(__VA_ARGS__) 238 244 #else 239 245 #define nic_dmsg(...) … … 241 247 242 248 #if CONFIG_PIC_DEBUG 243 #define pic_dmsg(...) printk(__VA_ARGS__)249 #define pic_dmsg(...) if(hal_time_stamp() > CONFIG_PIC_DEBUG) printk(__VA_ARGS__) 244 250 #else 245 251 #define pic_dmsg(...) … … 247 253 248 254 #if CONFIG_PPM_DEBUG 249 #define ppm_dmsg(...) printk(__VA_ARGS__)255 #define ppm_dmsg(...) if(hal_time_stamp() > CONFIG_PPM_DEBUG) printk(__VA_ARGS__) 250 256 #else 251 257 #define ppm_dmsg(...) … … 253 259 254 260 #if CONFIG_PROCESS_DEBUG 255 #define process_dmsg(...) printk(__VA_ARGS__)261 #define process_dmsg(...) if(hal_time_stamp() > CONFIG_PROCESS_DEBUG) printk(__VA_ARGS__) 256 262 #else 257 263 #define process_dmsg(...) … … 264 270 #endif 265 271 266 #if CONFIG_RPCG_DEBUG267 #define rpcg_dmsg(...) printk(__VA_ARGS__)268 #else269 #define rpcg_dmsg(...)270 #endif271 272 272 #if CONFIG_SCHED_DEBUG 273 #define sched_dmsg(...) printk(__VA_ARGS__)273 #define sched_dmsg(...) if(hal_time_stamp() > CONFIG_SCHED_DEBUG) printk(__VA_ARGS__) 274 274 #else 275 275 #define sched_dmsg(...) … … 277 277 278 278 #if CONFIG_SIGNAL_DEBUG 279 #define signal_dmsg(...) printk(__VA_ARGS__)279 #define signal_dmsg(...) if(hal_time_stamp() > CONFIG_SIGNAL_DEBUG) printk(__VA_ARGS__) 280 280 #else 281 281 #define signal_dmsg(...) … … 283 283 284 284 #if CONFIG_SYSCALL_DEBUG 285 #define syscall_dmsg(...) printk(__VA_ARGS__)285 #define syscall_dmsg(...) if(hal_time_stamp() > CONFIG_SYSCALL_DEBUG) printk(__VA_ARGS__) 286 286 #else 287 287 #define syscall_dmsg(...) … … 289 289 290 290 #if CONFIG_THREAD_DEBUG 291 #define thread_dmsg(...) printk(__VA_ARGS__)291 #define thread_dmsg(...) if(hal_time_stamp() > CONFIG_THREAD_DEBUG) printk(__VA_ARGS__) 292 292 #else 293 293 #define thread_dmsg(...) … … 295 295 296 296 #if CONFIG_TXT_DEBUG 297 #define txt_dmsg(...) printk(__VA_ARGS__)297 #define txt_dmsg(...) if(hal_time_stamp() > CONFIG_TXT_DEBUG) printk(__VA_ARGS__) 298 298 #else 299 299 #define txt_dmsg(...) … … 307 307 308 308 #if CONFIG_VMM_DEBUG 309 #define vmm_dmsg(...) printk(__VA_ARGS__)309 #define vmm_dmsg(...) if(hal_time_stamp() > CONFIG_VMM_DEBUG) printk(__VA_ARGS__) 310 310 #else 311 311 #define vmm_dmsg(...)
Note: See TracChangeset
for help on using the changeset viewer.