Skip to content

Commit

Permalink
log: include log level in callback
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Nov 16, 2018
1 parent 7a83bdf commit b204911
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/chunkio/chunkio.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct cio_ctx {

/* logging */
int log_level;
void (*log_cb)(void *, const char *, int, const char *);
void (*log_cb)(void *, int, const char *, int, const char *);

/* streams */
struct mk_list streams;
Expand Down
2 changes: 1 addition & 1 deletion src/cio_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void cio_log_print(void *ctx, int level, const char *file, int line,
}
va_end(args);

cio->log_cb(ctx, file, line, buf);
cio->log_cb(ctx, level, file, line, buf);
}

int cio_errno_print(int errnum, const char *file, int line)
Expand Down

0 comments on commit b204911

Please sign in to comment.