int NAND_Print(const char *fmt, ...)
{
	va_list args;
	int r;

	va_start(args, fmt);
	r = vprintk(fmt, args);
	va_end(args);

	return r;
}
示例#2
0
/* 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);
}
示例#3
0
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);
	}
}
示例#4
0
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);
	}
}
示例#5
0
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;
}
示例#7
0
//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;
}
示例#9
0
文件: lbr.c 项目: aiaxun/KernelModule
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);
}
示例#10
0
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;
}
示例#11
0
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);
	}
}
示例#12
0
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);
}
示例#13
0
文件: main.c 项目: zhangsen/rasp-os
void panic(const char *fmt, ...)
{
    va_list list;
    va_start(list, fmt);

    printk("panic: ");
    vprintk(fmt, list);
    va_end(list);

    while (1)
        ;
}
示例#14
0
int
printk(const char *fmt, ...)
{
    va_list ap;
    int cnt;

    va_start(ap, fmt);
    cnt = vprintk(fmt, ap);
    va_end(ap);

    return cnt;
}
示例#15
0
文件: printk.c 项目: bedreamer/fdos
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;
}
示例#16
0
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);
}
示例#17
0
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;
}
示例#19
0
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);
}
示例#20
0
文件: debug.c 项目: shui8023/shui_os
int printk(const int8 * format, ...)
{
	int number;
	char * arg;

	va_start(arg, format);
	
	number = vprintk(format, arg);

	va_end(arg);
	
	return number;
}
示例#21
0
/**
 * 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);
}
示例#22
0
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);
}
示例#23
0
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);
    }
}
示例#24
0
文件: log.c 项目: exuuwen/study
// 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;
}
示例#25
0
文件: printk.c 项目: bedreamer/fdos
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;
}
示例#26
0
文件: heapwalk.c 项目: chch1028/rtems
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);
}
示例#28
0
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
}
示例#29
0
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);
}
示例#30
0
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;
}