int NAND_Print(const char *fmt, ...) { va_list args; int r; va_start(args, fmt); r = vprintk(fmt, args); va_end(args); return r; }
/* like panic, but don't */ void _warn(const char *file, int line, const char *fmt,...) { va_list ap; va_start(ap, fmt); printk("kernel warning at %s:%d: ", file, line); vprintk(fmt, ap); printk("\n"); va_end(ap); }
void mt6575_touch_info(const char *fmt, ...) { va_list args; int r; if (touch_info_mask) { va_start(args, fmt); r = vprintk(fmt, args); va_end(args); } }
void mt6575_audio_debug(const char *fmt, ...) { va_list args; int r; if (audio_debug_mask) { va_start(args, fmt); r = vprintk(fmt, args); va_end(args); } }
int __ndprint(const char *fmt, ...) { va_list args; int ret; va_start(args, fmt); ret = vprintk(fmt, args); va_end(args); return ret; }
int compat_printk(const char *fmt, ...) { va_list ap; int ret; if (!compat_log) return 0; va_start(ap, fmt); ret = vprintk(fmt, ap); va_end(ap); return ret; }
//samething as ftfs_error...when ftfs fs calls needs to dump info out inline void ftfs_log(const char * function, const char * fmt, ...) { #ifdef FTFS_DEBUG va_list args; va_start(args, fmt); printk(KERN_ALERT "ftfs log: %s: ", function); vprintk(fmt, args); printk(KERN_ALERT "\n"); va_end(args); #endif }
asmlinkage int printk(const char *fmt, ...) { va_list args; int r; va_start(args, fmt); r = vprintk(fmt, args); va_end(args); return r; }
inline void printdj(bool print_cpuid, const char *fmt, ...) { int core_id, thread_id; va_list args; if (print_cpuid) cpuids(&core_id, &thread_id); va_start(args, fmt); if (print_cpuid) printk("A:%d:%d: ", core_id, thread_id); vprintk(fmt, args); va_end(args); }
int remote_printk(const char *fmt, ...) { va_list args; int r; if (gp_kp->debug_enable==0) return 0; va_start(args, fmt); r = vprintk(fmt, args); va_end(args); return r; }
void soc_pcmcia_debug(struct soc_pcmcia_socket *skt, const char *func, int lvl, const char *fmt, ...) { va_list args; if (pc_debug > lvl) { printk(KERN_DEBUG "skt%u: %s: ", skt->nr, func); va_start(args, fmt); vprintk(fmt, args); va_end(args); } }
void ext2_msg(struct super_block *sb, const char *prefix, const char *fmt, ...) { va_list args; va_start(args, fmt); printk("%sEXT2-fs (%s): ", prefix, sb->s_id); vprintk(fmt, args); printk("\n"); va_end(args); }
void panic(const char *fmt, ...) { va_list list; va_start(list, fmt); printk("panic: "); vprintk(fmt, list); va_end(list); while (1) ; }
int printk(const char *fmt, ...) { va_list ap; int cnt; va_start(ap, fmt); cnt = vprintk(fmt, ap); va_end(ap); return cnt; }
int kprintf(const char *fmt, ...) { var_list va; int len; va_start(va, fmt); //get_spinlock(klock); len=vsprintf(kbuf, fmt, va); kbuf[len]='\0'; vprintk(kbuf); //release_spinlock(klock); return len; }
static void safe_printf (const char *fmt, ...) { va_list ap; va_start(ap, fmt); if ( _System_state_Is_up( _System_state_Get() ) ) vfprintf( stderr, fmt, ap ); else vprintk( fmt, ap ); va_end(ap); }
void ext2_warning (struct super_block * sb, const char * function, const char * fmt, ...) { va_list args; va_start(args, fmt); printk(KERN_WARNING "EXT2-fs warning (device %s): %s: ", sb->s_id, function); vprintk(fmt, args); printk("\n"); va_end(args); }
asmlinkage int printk(const char *fmt, ...) { va_list args; int r; va_start(args, fmt); trace_mark(kernel_printk, "ip %p", __builtin_return_address(0)); r = vprintk(fmt, args); va_end(args); return r; }
static void l1m_debug(struct FsmInst *fi, char *fmt, ...) { struct layer1 *l1 = fi->userdata; va_list va; va_start(va, fmt); printk(KERN_DEBUG "%s: ", l1->dch->dev.name); vprintk(fmt, va); printk("\n"); va_end(va); }
int printk(const int8 * format, ...) { int number; char * arg; va_start(arg, format); number = vprintk(format, arg); va_end(arg); return number; }
/** * Prints a message to the console. * TODO: Prefix print messages with vm->name and vcore */ static void palacios_print( void * vm, int vcore, const char * format, ... ) { va_list ap; va_start(ap, format); vprintk(format, ap); va_end(ap); }
static void l2m_debug(struct FsmInst *fi, char *fmt, ...) { struct layer2 *l2 = fi->userdata; va_list va; if (!(*debug & DEBUG_L2_FSM)) return; va_start(va, fmt); printk(KERN_DEBUG "l2 (sapi %d tei %d): ", l2->sapi, l2->tei); vprintk(fmt, va); printk("\n"); va_end(va); }
void DPRINTF(struct ath_softc *sc, int dbg_mask, const char *fmt, ...) { if (!sc) return; if (sc->debug.debug_mask & dbg_mask) { va_list args; va_start(args, fmt); printk(KERN_DEBUG "ath9k: "); vprintk(fmt, args); va_end(args); } }
// Kernel logger wrapper // Implemented a debug level based mechnism int uprintk(KernelTraceLevel level, const char *fmt, ...) { va_list args; int r; /* check the log level before do the printk */ if (level > kernel_current_loglevel) { return 0; } va_start(args, fmt); r = vprintk(fmt, args); va_end(args); return r; }
int printk(const char *fmt, ...) { var_list va; int len; va_start(va, fmt); //get_spinlock(klock); if (0!=kx){ kx=0, ky++;} len=vsprintf(kbuf, fmt, va); kbuf[len]='\0'; vprintk(kbuf); //vprintk("\n"); //release_spinlock(klock); return len; }
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { va_list ap; if ( error ) { printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); vprintk( fmt, ap ); va_end( ap ); }
/** * @brief ug31_printk_special * * Print debug message * * @para level message level * @para fmt message * @return integer */ int ug31_printk_special(int level, const char *fmt, ...) { va_list args; int r; r = 0; if(level <= Ug31DebugEnable) { va_start(args, fmt); r = vprintk(fmt, args); va_end(args); } return (r); }
asmlinkage int printk(const char *fmt, ...) { #if 1 va_list args; int r; va_start(args, fmt); r = vprintk(fmt, args); va_end(args); return r; #else return 0; #endif }
void __snd_printk(unsigned int level, const char *path, int line, const char *format, ...) { va_list args; #ifdef CONFIG_SND_DEBUG if (debug < level) return; #endif va_start(args, format); if (print_snd_pfx(level, path, line, format)) format += 3; /* skip the printk level-prefix */ vprintk(format, args); va_end(args); }
static int mprint(int x, int y, char *format, ...) { int n; va_list args; Atomic(); mt_cons_gotoxy(x, y); mt_cons_setattr(LIGHTCYAN, BLACK); va_start(args, format); n = vprintk(format, args); va_end(args); mt_cons_clreol(); Unatomic(); return n; }