Files
scoutfs/kmod/src/msg.c
Zach Brown 754ce95f5c scoutfs: use rid in console messages
Change the console message output to show the fsid:rid mount identity
instead of the block device name and device major and minor numbers.

Signed-off-by: Zach Brown <zab@versity.com>
2019-08-20 15:52:13 -07:00

25 lines
545 B
C

#include <linux/kernel.h>
#include <linux/fs.h>
#include "msg.h"
/*
* This can be called with pre-emption disabled if the caller is printing
* the contents of formated per-cpu key string buffers.
*/
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 "SCSBF"%s: %pV\n", prefix, SCSB_ARGS(sb), str, &vaf);
va_end(args);
}