mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-09 12:10:09 +00:00
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>
23 lines
476 B
C
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);
|
|
}
|