mirror of
https://github.com/linux-apfs/linux-apfs-oot.git
synced 2026-08-18 02:19:52 -07:00
24 lines
448 B
C
24 lines
448 B
C
// SPDX-License-Identifier: GPL-2.0
|
|||
|
|
/*
|
||
|
|
* linux/fs/apfs/message.c
|
||
|
|
*
|
||
|
|
* Copyright (C) 2018 Ernesto A. Fernández <ernesto.mnd.fernandez@gmail.com>
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include <linux/fs.h>
|
||
|
|
#include "message.h"
|
||
|
|
|
||
|
|
void apfs_msg(struct super_block *sb, const char *prefix, const char *fmt, ...)
|
||
|
|
{
|
||
|
|
struct va_format vaf;
|
||
|
|
va_list args;
|
||
|
|
|
||
|
|
va_start(args, fmt);
|
||
|
|
|
||
|
|
vaf.fmt = fmt;
|
||
|
|
vaf.va = &args;
|
||
|
|
|
||
|
|
printk("%sAPFS (%s): %pV\n", prefix, sb->s_id, &vaf);
|
||
|
|
|
||
|
|
va_end(args);
|
||
|
|
}
|