mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-09 21:27:25 +00:00
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>
25 lines
545 B
C
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);
|
|
}
|