Commit 60b156e3 authored by Oleg Drokin's avatar Oleg Drokin Committed by Greg Kroah-Hartman

staging/lustre/libcfs: style change to add missing spaces for operations

This fixes checkpatch messages about
"spaces preferred around that '-' (ctx:VxV)"
Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 22628c7d
...@@ -418,7 +418,7 @@ libcfs_debug_str2mask(int *mask, const char *str, int is_subsys) ...@@ -418,7 +418,7 @@ libcfs_debug_str2mask(int *mask, const char *str, int is_subsys)
/* Allow a number for backwards compatibility */ /* Allow a number for backwards compatibility */
for (n = strlen(str); n > 0; n--) for (n = strlen(str); n > 0; n--)
if (!isspace(str[n-1])) if (!isspace(str[n - 1]))
break; break;
matched = n; matched = n;
t = sscanf(str, "%i%n", &m, &matched); t = sscanf(str, "%i%n", &m, &matched);
......
...@@ -50,7 +50,7 @@ void *libcfs_kvzalloc_cpt(struct cfs_cpt_table *cptab, int cpt, size_t size, ...@@ -50,7 +50,7 @@ void *libcfs_kvzalloc_cpt(struct cfs_cpt_table *cptab, int cpt, size_t size,
ret = kzalloc_node(size, flags | __GFP_NOWARN, ret = kzalloc_node(size, flags | __GFP_NOWARN,
cfs_cpt_spread_node(cptab, cpt)); cfs_cpt_spread_node(cptab, cpt));
if (!ret) { if (!ret) {
WARN_ON(!(flags & (__GFP_FS|__GFP_HIGH))); WARN_ON(!(flags & (__GFP_FS | __GFP_HIGH)));
ret = vmalloc_node(size, cfs_cpt_spread_node(cptab, cpt)); ret = vmalloc_node(size, cfs_cpt_spread_node(cptab, cpt));
} }
......
...@@ -268,5 +268,5 @@ int cfs_trace_max_debug_mb(void) ...@@ -268,5 +268,5 @@ int cfs_trace_max_debug_mb(void)
{ {
int total_mb = (totalram_pages >> (20 - PAGE_SHIFT)); int total_mb = (totalram_pages >> (20 - PAGE_SHIFT));
return max(512, (total_mb * 80)/100); return max(512, (total_mb * 80) / 100);
} }
...@@ -346,7 +346,7 @@ int libcfs_debug_vmsg2(struct libcfs_debug_msg_data *msgdata, ...@@ -346,7 +346,7 @@ int libcfs_debug_vmsg2(struct libcfs_debug_msg_data *msgdata,
break; break;
} }
if (*(string_buf+needed-1) != '\n') if (*(string_buf + needed - 1) != '\n')
printk(KERN_INFO "format at %s:%d:%s doesn't end in newline\n", printk(KERN_INFO "format at %s:%d:%s doesn't end in newline\n",
file, msgdata->msg_line, msgdata->msg_fn); file, msgdata->msg_line, msgdata->msg_fn);
...@@ -436,7 +436,7 @@ int libcfs_debug_vmsg2(struct libcfs_debug_msg_data *msgdata, ...@@ -436,7 +436,7 @@ int libcfs_debug_vmsg2(struct libcfs_debug_msg_data *msgdata,
remain = CFS_TRACE_CONSOLE_BUFFER_SIZE - needed; remain = CFS_TRACE_CONSOLE_BUFFER_SIZE - needed;
if (remain > 0) { if (remain > 0) {
va_start(ap, format2); va_start(ap, format2);
needed += vsnprintf(string_buf+needed, remain, needed += vsnprintf(string_buf + needed, remain,
format2, ap); format2, ap);
va_end(ap); va_end(ap);
} }
...@@ -667,7 +667,8 @@ int cfs_tracefile_dump_all_pages(char *filename) ...@@ -667,7 +667,8 @@ int cfs_tracefile_dump_all_pages(char *filename)
cfs_tracefile_write_lock(); cfs_tracefile_write_lock();
filp = filp_open(filename, O_CREAT|O_EXCL|O_WRONLY|O_LARGEFILE, 0600); filp = filp_open(filename, O_CREAT | O_EXCL | O_WRONLY | O_LARGEFILE,
0600);
if (IS_ERR(filp)) { if (IS_ERR(filp)) {
rc = PTR_ERR(filp); rc = PTR_ERR(filp);
filp = NULL; filp = NULL;
......
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