diff options
-rw-r--r-- | libkmod/libkmod.c | 20 | ||||
-rw-r--r-- | libkmod/libkmod.h | 11 |
2 files changed, 16 insertions, 15 deletions
diff --git a/libkmod/libkmod.c b/libkmod/libkmod.c index 3c3d59e..8547a2c 100644 --- a/libkmod/libkmod.c +++ b/libkmod/libkmod.c @@ -46,15 +46,15 @@ struct kmod_ctx { int refcount; void (*log_fn)(struct kmod_ctx *ctx, - int priority, const char *file, int line, const char *fn, - const char *format, va_list args); + int priority, const char *file, int line, + const char *fn, const char *format, va_list args); void *userdata; int log_priority; }; void kmod_log(struct kmod_ctx *ctx, - int priority, const char *file, int line, const char *fn, - const char *format, ...) + int priority, const char *file, int line, const char *fn, + const char *format, ...) { va_list args; @@ -64,8 +64,8 @@ void kmod_log(struct kmod_ctx *ctx, } static void log_stderr(struct kmod_ctx *ctx, - int priority, const char *file, int line, const char *fn, - const char *format, va_list args) + int priority, const char *file, int line, + const char *fn, const char *format, va_list args) { fprintf(stderr, "libkmod: %s: ", fn); vfprintf(stderr, format, args); @@ -200,10 +200,10 @@ KMOD_EXPORT struct kmod_ctx *kmod_unref(struct kmod_ctx *ctx) * **/ KMOD_EXPORT void kmod_set_log_fn(struct kmod_ctx *ctx, - void (*log_fn)(struct kmod_ctx *ctx, - int priority, const char *file, - int line, const char *fn, - const char *format, va_list args)) + void (*log_fn)(struct kmod_ctx *ctx, + int priority, const char *file, + int line, const char *fn, + const char *format, va_list args)) { ctx->log_fn = log_fn; info(ctx, "custom logging function %p registered\n", log_fn); diff --git a/libkmod/libkmod.h b/libkmod/libkmod.h index 19e29b1..55c0074 100644 --- a/libkmod/libkmod.h +++ b/libkmod/libkmod.h @@ -38,9 +38,10 @@ struct kmod_ctx *kmod_ref(struct kmod_ctx *ctx); struct kmod_ctx *kmod_unref(struct kmod_ctx *ctx); int kmod_new(struct kmod_ctx **ctx); void kmod_set_log_fn(struct kmod_ctx *ctx, - void (*log_fn)(struct kmod_ctx *ctx, - int priority, const char *file, int line, const char *fn, - const char *format, va_list args)); + void (*log_fn)(struct kmod_ctx *ctx, + int priority, const char *file, int line, + const char *fn, const char *format, + va_list args)); int kmod_get_log_priority(struct kmod_ctx *ctx); void kmod_set_log_priority(struct kmod_ctx *ctx, int priority); void *kmod_get_userdata(struct kmod_ctx *ctx); @@ -57,8 +58,8 @@ const char *kmod_list_entry_get_name(struct kmod_list_entry *list_entry); const char *kmod_list_entry_get_value(struct kmod_list_entry *list_entry); #define kmod_list_entry_foreach(list_entry, first_entry) \ for (list_entry = first_entry; \ - list_entry != NULL; \ - list_entry = kmod_list_entry_get_next(list_entry)) + list_entry != NULL; \ + list_entry = kmod_list_entry_get_next(list_entry)) /* * kmod_thing |