Commit 5ba21c46 authored by Aldo Iljazi's avatar Aldo Iljazi Committed by Greg Kroah-Hartman

Staging: dgnc: dgnc_trace.c: fixed coding style issues

Fixed the following coding style issues:

Lines 66-70: Replaced spaced with tabs.
Lines 75, 98, 182: Inserted space before the open parenthesis.
Line 89: Inserted spaces around that '='
Signed-off-by: default avatarAldo Iljazi <mail@aldo.io>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7d4c0318
...@@ -63,16 +63,16 @@ void dgnc_tracef(const char *fmt, ...) ...@@ -63,16 +63,16 @@ void dgnc_tracef(const char *fmt, ...)
void dgnc_tracef(const char *fmt, ...) void dgnc_tracef(const char *fmt, ...)
{ {
va_list ap; va_list ap;
char buf[TRC_MAXMSG+1]; char buf[TRC_MAXMSG+1];
size_t lenbuf; size_t lenbuf;
int i; int i;
static int failed = FALSE; static int failed = FALSE;
# if defined(TRC_TO_KMEM) # if defined(TRC_TO_KMEM)
unsigned long flags; unsigned long flags;
#endif #endif
if(failed) if (failed)
return; return;
# if defined(TRC_TO_KMEM) # if defined(TRC_TO_KMEM)
DGNC_LOCK(dgnc_tracef_lock, flags); DGNC_LOCK(dgnc_tracef_lock, flags);
...@@ -86,7 +86,7 @@ void dgnc_tracef(const char *fmt, ...) ...@@ -86,7 +86,7 @@ void dgnc_tracef(const char *fmt, ...)
# if defined(TRC_TO_KMEM) # if defined(TRC_TO_KMEM)
{ {
static int initd=0; static int initd = 0;
/* /*
* Now, in addition to (or instead of) printing this stuff out * Now, in addition to (or instead of) printing this stuff out
...@@ -95,7 +95,7 @@ void dgnc_tracef(const char *fmt, ...) ...@@ -95,7 +95,7 @@ void dgnc_tracef(const char *fmt, ...)
*/ */
if (!initd) { if (!initd) {
dgnc_trcbuf = (char *) vmalloc(dgnc_trcbuf_size); dgnc_trcbuf = (char *) vmalloc(dgnc_trcbuf_size);
if(!dgnc_trcbuf) { if (!dgnc_trcbuf) {
failed = TRUE; failed = TRUE;
printk("dgnc: tracing init failed!\n"); printk("dgnc: tracing init failed!\n");
return; return;
...@@ -179,6 +179,6 @@ void dgnc_tracef(const char *fmt, ...) ...@@ -179,6 +179,6 @@ void dgnc_tracef(const char *fmt, ...)
*/ */
void dgnc_tracer_free(void) void dgnc_tracer_free(void)
{ {
if(dgnc_trcbuf) if (dgnc_trcbuf)
vfree(dgnc_trcbuf); vfree(dgnc_trcbuf);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment