Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
687c7f9e
Commit
687c7f9e
authored
Jul 03, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sysfs: change print() to pr_debug() to not annoy everyone.
parent
adf9e8ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
fs/sysfs/bin.c
fs/sysfs/bin.c
+3
-1
No files found.
fs/sysfs/bin.c
View file @
687c7f9e
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
* bin.c - binary file operations for sysfs.
* bin.c - binary file operations for sysfs.
*/
*/
#undef DEBUG
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/fs.h>
#include <linux/kobject.h>
#include <linux/kobject.h>
...
@@ -48,7 +50,7 @@ read(struct file * file, char __user * userbuf, size_t count, loff_t * off)
...
@@ -48,7 +50,7 @@ read(struct file * file, char __user * userbuf, size_t count, loff_t * off)
if
(
copy_to_user
(
userbuf
,
buffer
+
offs
,
count
)
!=
0
)
if
(
copy_to_user
(
userbuf
,
buffer
+
offs
,
count
)
!=
0
)
return
-
EINVAL
;
return
-
EINVAL
;
pr
intk
(
"offs = %lld, *off = %lld, count = %zd
\n
"
,
offs
,
*
off
,
count
);
pr
_debug
(
"offs = %lld, *off = %lld, count = %zd
\n
"
,
offs
,
*
off
,
count
);
*
off
=
offs
+
count
;
*
off
=
offs
+
count
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment