示例#1
0
void
__reiserfs_log(int level, const char * fmt, ...)
{

	do_reiserfs_warning(fmt);
	log(level, "ReiserFS/%s: %s\n", __FUNCTION__, error_buf);
}
示例#2
0
文件: prints.c 项目: 7799/linux
/* No newline.. reiserfs_info calls can be followed by printk's */
void reiserfs_info(struct super_block *sb, const char *fmt, ...)
{
	do_reiserfs_warning(fmt);
	if (sb)
		printk(KERN_NOTICE "REISERFS (device %s): %s",
		       sb->s_id, error_buf);
	else
		printk(KERN_NOTICE "REISERFS %s:", error_buf);
}
示例#3
0
void reiserfs_debug (struct super_block *s, int level, const char * fmt, ...)
{
#ifdef CONFIG_REISERFS_CHECK
  do_reiserfs_warning(fmt);
  printk (KERN_DEBUG "%s", error_buf);
#else
  ; 
#endif
}
示例#4
0
/* No newline.. reiserfs_info calls can be followed by printk's */
void reiserfs_info (struct super_block *sb, const char * fmt, ...)
{
  do_reiserfs_warning(fmt);
  if (sb)
      printk (KERN_NOTICE "ReiserFS: %s: %s",
             reiserfs_bdevname (sb), error_buf);
  else
      printk (KERN_NOTICE "ReiserFS: %s", error_buf);
}
示例#5
0
void reiserfs_warning (struct super_block *sb, const char * fmt, ...)
{
  do_reiserfs_warning(fmt);
  if (sb)
      printk (KERN_WARNING "ReiserFS: %s: warning: %s\n",
             reiserfs_bdevname (sb), error_buf);
  else
      printk (KERN_WARNING "ReiserFS: warning: %s\n", error_buf);
}
示例#6
0
文件: prints.c 项目: Mr-Aloof/wl500g
void reiserfs_panic(struct super_block *sb, const char *fmt, ...)
{
	do_reiserfs_warning(fmt);

	dump_stack();

	panic(KERN_EMERG "REISERFS: panic (device %s): %s\n",
	       reiserfs_bdevname(sb), error_buf);
}
示例#7
0
void reiserfs_panic (struct super_block * sb, const char * fmt, ...)
{
  show_reiserfs_locks() ;
  do_reiserfs_warning(fmt);
  printk ( KERN_EMERG "%s", error_buf);
  BUG ();

  /* this is not actually called, but makes reiserfs_panic() "noreturn" */
  panic ("REISERFS: panic (device %s): %s\n",
	 sb ? sb->s_id : "sb == 0", error_buf);
}
示例#8
0
void reiserfs_panic (struct super_block * sb, const char * fmt, ...)
{
  do_reiserfs_warning(fmt);
  printk (KERN_EMERG "REISERFS: panic (device %s): %s\n",
          reiserfs_bdevname (sb), error_buf);
  BUG ();

  /* this is not actually called, but makes reiserfs_panic() "noreturn" */
  panic ("REISERFS: panic (device %s): %s\n",
	 reiserfs_bdevname (sb), error_buf);
}
示例#9
0
void reiserfs_debug (struct super_block *s, int level, const char * fmt, ...)
{
#ifdef CONFIG_REISERFS_CHECK
  do_reiserfs_warning(fmt);
  if (s)
      printk (KERN_DEBUG "ReiserFS: %s: %s\n",
             reiserfs_bdevname (s), error_buf);
  else
      printk (KERN_DEBUG "ReiserFS: %s\n", error_buf);
#endif
}
示例#10
0
文件: prints.c 项目: 7799/linux
void reiserfs_debug(struct super_block *s, int level, const char *fmt, ...)
{
#ifdef CONFIG_REISERFS_CHECK
	do_reiserfs_warning(fmt);
	if (s)
		printk(KERN_DEBUG "REISERFS debug (device %s): %s\n",
		       s->s_id, error_buf);
	else
		printk(KERN_DEBUG "REISERFS debug: %s\n", error_buf);
#endif
}
示例#11
0
文件: prints.c 项目: 7799/linux
void __reiserfs_warning(struct super_block *sb, const char *id,
			 const char *function, const char *fmt, ...)
{
	do_reiserfs_warning(fmt);
	if (sb)
		printk(KERN_WARNING "REISERFS warning (device %s): %s%s%s: "
		       "%s\n", sb->s_id, id ? id : "", id ? " " : "",
		       function, error_buf);
	else
		printk(KERN_WARNING "REISERFS warning: %s%s%s: %s\n",
		       id ? id : "", id ? " " : "", function, error_buf);
}
示例#12
0
void __reiserfs_panic(struct super_block *sb, const char *id,
		      const char *function, const char *fmt, ...)
{
	do_reiserfs_warning(fmt);

#ifdef CONFIG_REISERFS_CHECK
	dump_stack();
#endif
	if (sb)
		panic(KERN_WARNING "REISERFS panic (device %s): %s%s%s: %s\n",
		      sb->s_id, id ? id : "", id ? " " : "",
		      function, error_buf);
	else
		panic(KERN_WARNING "REISERFS panic: %s%s%s: %s\n",
		      id ? id : "", id ? " " : "", function, error_buf);
}
示例#13
0
文件: prints.c 项目: Mr-Aloof/wl500g
void reiserfs_abort(struct super_block *sb, int errno, const char *fmt, ...)
{
	do_reiserfs_warning(fmt);

	if (reiserfs_error_panic(sb)) {
		panic(KERN_CRIT "REISERFS: panic (device %s): %s\n",
		      reiserfs_bdevname(sb), error_buf);
	}

	if (sb->s_flags & MS_RDONLY)
		return;

	printk(KERN_CRIT "REISERFS: abort (device %s): %s\n",
	       reiserfs_bdevname(sb), error_buf);

	sb->s_flags |= MS_RDONLY;
	reiserfs_journal_abort(sb, errno);
}
示例#14
0
文件: prints.c 项目: 7799/linux
void reiserfs_abort(struct super_block *sb, int errno, const char *fmt, ...)
{
	do_reiserfs_warning(fmt);

	if (reiserfs_error_panic(sb)) {
		panic(KERN_CRIT "REISERFS panic (device %s): %s\n", sb->s_id,
		      error_buf);
	}

	if (reiserfs_is_journal_aborted(SB_JOURNAL(sb)))
		return;

	printk(KERN_CRIT "REISERFS abort (device %s): %s\n", sb->s_id,
	       error_buf);

	sb->s_flags |= MS_RDONLY;
	reiserfs_abort_journal(sb, errno);
}
示例#15
0
文件: prints.c 项目: 7799/linux
void __reiserfs_error(struct super_block *sb, const char *id,
		      const char *function, const char *fmt, ...)
{
	do_reiserfs_warning(fmt);

	BUG_ON(sb == NULL);

	if (reiserfs_error_panic(sb))
		__reiserfs_panic(sb, id, function, error_buf);

	if (id && id[0])
		printk(KERN_CRIT "REISERFS error (device %s): %s %s: %s\n",
		       sb->s_id, id, function, error_buf);
	else
		printk(KERN_CRIT "REISERFS error (device %s): %s: %s\n",
		       sb->s_id, function, error_buf);

	if (sb->s_flags & MS_RDONLY)
		return;

	reiserfs_info(sb, "Remounting filesystem read-only\n");
	sb->s_flags |= MS_RDONLY;
	reiserfs_abort_journal(sb, -EIO);
}
示例#16
0
void reiserfs_warning (const char * fmt, ...)
{
  do_reiserfs_warning(fmt);
  /* console_print (error_buf); */
  printk (KERN_WARNING "%s", error_buf);
}
示例#17
0
文件: prints.c 项目: 7799/linux
/* No newline.. reiserfs_printk calls can be followed by printk's */
static void reiserfs_printk(const char *fmt, ...)
{
	do_reiserfs_warning(fmt);
	printk(error_buf);
}