> +static void log_syslog(struct ndctl_ctx *ctx, int priority,
const char *file,
> + int line, const char *fn, const char *format, va_list args)
> + char *buf = (char *)malloc(BUF_SIZE);
> + vsnprintf(buf, BUF_SIZE, format, args);
> + syslog(priority, "%s", buf);
> + free(buf);
This seems to be reinventing setting up a log file that I'm sure we
could borrow or link to...
ndctl borrows heavily from git, and git does logging in it's daemon.c,
I'd be happier if you copied that.
Maybe silly question...., but is it OK about OSS lisence?
In my understanding, basically the lisence of git is GPL2,
LGPL is used just for use xdiff/ or some libc code in git....
However, the lisence of ndctl is LGPL2.1
If we copied from git to ndctl, then I suppose that ndctl
daemon may have to use GPL2 rather than LGPL2.1, right?