summaryrefslogtreecommitdiffstats
path: root/lib/printf.h
blob: bcee7705bb77c51b61e759d3eaaad155b6c99cda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _JOVE_LIB_PRINTF_H
#define _JOVE_LIB_PRINTF_H 1

#include <stdarg.h>
#include <stddef.h>

#define klogf(fmt, ...) kprintf("%s: " fmt, __func__, __VA_ARGS__)

int kprintf(const char *fmt, ...);
int kvprintf(const char *fmt, va_list ap);

int vsnprintf(char *str, size_t size, const char *fmt, va_list ap);

#endif