Files
scoutfs/kmod/src/msg.c
Zach Brown fbbfac1b27 scoutfs: fix sparse errors
I was building against a RHEL tree that broke sparse builds.  With that
fixed I can now see and fix sparse errors.

Signed-off-by: Zach Brown <zab@versity.com>
2016-03-24 21:44:42 -07:00

23 lines
476 B
C

#include <linux/kernel.h>
#include <linux/fs.h>
#include "msg.h"
void scoutfs_msg(struct super_block *sb, const char *prefix, const char *str,
const char *fmt, ...)
{
struct va_format vaf;
va_list args;
va_start(args, fmt);
vaf.fmt = fmt;
vaf.va = &args;
printk("%sscoutfs (%s %u:%u)%s: %pV\n", prefix,
sb->s_id, MAJOR(sb->s_bdev->bd_dev), MINOR(sb->s_bdev->bd_dev),
str, &vaf);
va_end(args);
}