mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-09 04:00:10 +00:00
Add some _sk suffix variants of the message printing calls so that we can use per-cpu key buffer arguments without the full SK_PCPU() wrapper. Signed-off-by: Zach Brown <zab@versity.com>
27 lines
613 B
C
27 lines
613 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 (%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);
|
|
}
|