Skip to content
Snippets Groups Projects
Commit 5bc1ea58 authored by Christian Löpke's avatar Christian Löpke
Browse files

Removed unnecessary debug output - Fixed ignored GNU-Code convention.

parent 1dc5214a
Branches
No related tags found
No related merge requests found
Pipeline #
...@@ -194,10 +194,10 @@ device_write(struct file *filp, const char *buff, size_t len, loff_t * off) ...@@ -194,10 +194,10 @@ device_write(struct file *filp, const char *buff, size_t len, loff_t * off)
int i; int i;
for(i = 0; i < len; i++) //Save the given string for(i = 0; i < len; i++) //Save the given string
msg_username[i] = buff[i]; msg_username[i] = buff[i];
for(i = len; i < USERBUF_LEN; i++) //Zeroing out the rest of mem for(i = len; i < USERBUF_LEN; i++) //Zeroing the rest of mem
msg_username[i] = 0; msg_username[i] = 0;
printk( KERN_INFO "%s: Successfully got %d bytes!\n", //printk(KERN_INFO "%s: Successfully got %d bytes!\n",
DEVICE_NAME, (int)len); // DEVICE_NAME, (int)len);
if(msg_username[len-1] == '\n') //Got new line terminator ? if(msg_username[len-1] == '\n') //Got new line terminator ?
msg_username[len-1] = 0; //Then terminate it! msg_username[len-1] = 0; //Then terminate it!
return len; //Emit successfully stored len bytes return len; //Emit successfully stored len bytes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment