summaryrefslogtreecommitdiff
path: root/tests/mod_system_logger
diff options
context:
space:
mode:
authorChristoph Lipka <clipka@de.adit-jv.com>2018-12-20 14:58:19 +0100
committerChristoph Lipka <clipka@de.adit-jv.com>2018-12-21 10:23:41 +0100
commitdca8ab254aa0a687c32009079d85e4d8f960b213 (patch)
treee63b6a552fd9f61873892110a56a89ef354864cd /tests/mod_system_logger
parent0d0c74640c8b792db37cb9f884f89f7561ea551f (diff)
downloadDLT-daemon-dca8ab254aa0a687c32009079d85e4d8f960b213.tar.gz
Code beautification using uncrustify
Signed-off-by: Christoph Lipka <clipka@de.adit-jv.com>
Diffstat (limited to 'tests/mod_system_logger')
-rw-r--r--tests/mod_system_logger/mod_system_logger.c37
1 files changed, 21 insertions, 16 deletions
diff --git a/tests/mod_system_logger/mod_system_logger.c b/tests/mod_system_logger/mod_system_logger.c
index 1d31fdb..61c732c 100644
--- a/tests/mod_system_logger/mod_system_logger.c
+++ b/tests/mod_system_logger/mod_system_logger.c
@@ -4,31 +4,36 @@
int i;
-static int system_proc_show(struct seq_file *m, void *v) {
- for(i=0; i<1000; i++)
- seq_printf(m, "Test Systemlogger %i\n",i);
- return 0;
+static int system_proc_show(struct seq_file *m, void *v)
+{
+ for (i = 0; i < 1000; i++)
+ seq_printf(m, "Test Systemlogger %i\n", i);
+
+ return 0;
}
-static int system_proc_open(struct inode *inode, struct file *file) {
- return single_open(file, system_proc_show, NULL);
+static int system_proc_open(struct inode *inode, struct file *file)
+{
+ return single_open(file, system_proc_show, NULL);
}
static const struct file_operations system_proc_fops = {
- .owner = THIS_MODULE,
- .open = system_proc_open,
- .read = seq_read,
- .llseek = seq_lseek,
- .release = single_release,
+ .owner = THIS_MODULE,
+ .open = system_proc_open,
+ .read = seq_read,
+ .llseek = seq_lseek,
+ .release = single_release,
};
-static int __init system_proc_init(void) {
- proc_create("systemlogger", 0, NULL, &system_proc_fops);
- return 0;
+static int __init system_proc_init(void)
+{
+ proc_create("systemlogger", 0, NULL, &system_proc_fops);
+ return 0;
}
-static void __exit system_proc_exit(void) {
- remove_proc_entry("systemlogger", NULL);
+static void __exit system_proc_exit(void)
+{
+ remove_proc_entry("systemlogger", NULL);
}
MODULE_LICENSE("GPL");