projects
/
petitboot
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use a list for device->boot_options
[petitboot]
/
discover
/
log.c
1
2
#include <stdarg.h>
3
#include <stdio.h>
4
5
#include "log.h"
6
7
static FILE *logf;
8
9
void pb_log(const char *fmt, ...)
10
{
11
va_list ap;
12
FILE *stream;
13
14
stream = logf ? logf : stdout;
15
16
va_start(ap, fmt);
17
vfprintf(stream, fmt, ap);
18
va_end(ap);
19
}
20
21
void pb_log_set_stream(FILE *stream)
22
{
23
logf = stream;
24
}