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
9272e9a2
Commit
9272e9a2
authored
Mar 21, 2010
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: keyboard - switch to using pr_err() and friends
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
97f5f0cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
drivers/char/keyboard.c
drivers/char/keyboard.c
+7
-4
No files found.
drivers/char/keyboard.c
View file @
9272e9a2
...
...
@@ -24,6 +24,8 @@
* 21-08-02: Converted to input API, major cleanup. (Vojtech Pavlik)
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/consolemap.h>
#include <linux/module.h>
#include <linux/sched.h>
...
...
@@ -639,7 +641,7 @@ static void k_spec(struct vc_data *vc, unsigned char value, char up_flag)
static
void
k_lowercase
(
struct
vc_data
*
vc
,
unsigned
char
value
,
char
up_flag
)
{
pr
intk
(
KERN_ERR
"keyboard.c:
k_lowercase was called - impossible
\n
"
);
pr
_err
(
"
k_lowercase was called - impossible
\n
"
);
}
static
void
k_unicode
(
struct
vc_data
*
vc
,
unsigned
int
value
,
char
up_flag
)
...
...
@@ -714,7 +716,7 @@ static void k_fn(struct vc_data *vc, unsigned char value, char up_flag)
if
(
func_table
[
value
])
puts_queue
(
vc
,
func_table
[
value
]);
}
else
pr
intk
(
KERN_ERR
"k_fn called with value=%d
\n
"
,
value
);
pr
_err
(
"k_fn called with value=%d
\n
"
,
value
);
}
static
void
k_cur
(
struct
vc_data
*
vc
,
unsigned
char
value
,
char
up_flag
)
...
...
@@ -912,7 +914,7 @@ static void k_brl(struct vc_data *vc, unsigned char value, char up_flag)
if
(
kbd
->
kbdmode
!=
VC_UNICODE
)
{
if
(
!
up_flag
)
pr
intk
(
"keyboard mode must be unicode for braille patterns
\n
"
);
pr
_warning
(
"keyboard mode must be unicode for braille patterns
\n
"
);
return
;
}
...
...
@@ -1169,7 +1171,8 @@ static void kbd_keycode(unsigned int keycode, int down, int hw_raw)
if
((
raw_mode
=
(
kbd
->
kbdmode
==
VC_RAW
))
&&
!
hw_raw
)
if
(
emulate_raw
(
vc
,
keycode
,
!
down
<<
7
))
if
(
keycode
<
BTN_MISC
&&
printk_ratelimit
())
printk
(
KERN_WARNING
"keyboard.c: can't emulate rawmode for keycode %d
\n
"
,
keycode
);
pr_warning
(
"can't emulate rawmode for keycode %d
\n
"
,
keycode
);
#ifdef CONFIG_SPARC
if
(
keycode
==
KEY_A
&&
sparc_l1_a_state
)
{
...
...
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