- Timestamp:
- Jan 25, 2021, 2:26:04 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/alsa-kernel/include/sound/core.h
r629 r658 296 296 297 297 #if defined(CONFIG_SND_DEBUG) || defined(CONFIG_SND_VERBOSE_PRINTK) 298 #error "Not valid for OS/2" 298 299 __printf(4, 5) 299 void __snd_printk(unsigned int level, const char *file, int line, 300 const char *format, ...); 300 void __snd_printk(unsigned int level, const char *file, int line, const char *format, ...); 301 301 #else 302 302 #ifndef TARGET_OS2 303 303 #define __snd_printk(level, file, line, format, ...) \ 304 304 printk(format, ##__VA_ARGS__) 305 305 #else 306 306 #define __snd_printk printk 307 #endif /* nothing*/308 #endif 307 #endif /* TARGET_OS2 */ 308 #endif /* defined(...) */ 309 309 310 310 /** … … 315 315 * when configured with CONFIG_SND_VERBOSE_PRINTK. 316 316 */ 317 #ifndef TARGET_OS2 317 318 #define snd_printk(fmt, ...) \ 318 319 __snd_printk(0, __FILE__, __LINE__, fmt, ##__VA_ARGS__) 320 #else 321 #define snd_printk __snd_printk 322 #endif 319 323 320 324 #ifdef CONFIG_SND_DEBUG … … 328 332 #ifndef TARGET_OS2 329 333 #define snd_printd(fmt, ...) \ 330 __snd_printk(1, __FILE__, __LINE__, fmt, ##__VA_ARGS__) 331 #else 332 #define snd_printd printk 333 #endif 334 __snd_printk(1, __FILE__, __LINE__, fmt, ##__VA_ARGS__) 334 335 #define _snd_printd(level, fmt, ...) \ 335 336 __snd_printk(level, __FILE__, __LINE__, fmt, ##__VA_ARGS__) 337 #else /* TARGET_OS2 */ 338 #define snd_printd printk 339 #endif /* TARGET_OS2 */ 336 340 337 341 /** … … 404 408 #ifndef TARGET_OS2 405 409 #define snd_printdd(format, ...) \ 406 410 __snd_printk(2, __FILE__, __LINE__, format, ##__VA_ARGS__) 407 411 #else 408 412 #define snd_printdd snd_printk 409 #endif 410 #else 413 #endif /* TARGET_OS2 */ 414 #else /* CONFIG_SND_DEBUG_VERBIOSE */ 411 415 #ifndef TARGET_OS2 412 416 __printf(1, 2) 413 417 static inline void snd_printdd(const char *format, ...) {} 414 418 #else 415 #define snd_printdd 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)416 #endif 417 #endif 419 #define snd_printdd snd_printk 420 #endif /* TARGET_OS2 */ 421 #endif /* CONFIG_SND_DEBUG_VERBIOSE */ 418 422 419 423
Note:
See TracChangeset
for help on using the changeset viewer.