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
Kirill Smelkov
linux
Commits
2b81792f
Commit
2b81792f
authored
Feb 12, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WATCHDOG] printk levels for pcwd.c
parent
403d2f4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
drivers/char/watchdog/pcwd.c
drivers/char/watchdog/pcwd.c
+15
-15
No files found.
drivers/char/watchdog/pcwd.c
View file @
2b81792f
...
...
@@ -198,30 +198,30 @@ void pcwd_showprevstate(void)
if
(
revision
==
PCWD_REVISION_A
)
{
if
(
card_status
&
WD_WDRST
)
printk
(
"pcwd: Previous reboot was caused by the card.
\n
"
);
printk
(
KERN_INFO
"pcwd: Previous reboot was caused by the card.
\n
"
);
if
(
card_status
&
WD_T110
)
{
printk
(
"pcwd: Card senses a CPU Overheat. Panicking!
\n
"
);
printk
(
"pcwd: CPU Overheat.
\n
"
);
printk
(
KERN_EMERG
"pcwd: Card senses a CPU Overheat. Panicking!
\n
"
);
printk
(
KERN_EMERG
"pcwd: CPU Overheat.
\n
"
);
machine_power_off
();
}
if
((
!
(
card_status
&
WD_WDRST
))
&&
(
!
(
card_status
&
WD_T110
)))
printk
(
"pcwd: Cold boot sense.
\n
"
);
printk
(
KERN_INFO
"pcwd: Cold boot sense.
\n
"
);
}
else
{
if
(
card_status
&
0x01
)
printk
(
"pcwd: Previous reboot was caused by the card.
\n
"
);
printk
(
KERN_INFO
"pcwd: Previous reboot was caused by the card.
\n
"
);
if
(
card_status
&
0x04
)
{
printk
(
"pcwd: Card senses a CPU Overheat. Panicking!
\n
"
);
printk
(
"pcwd: CPU Overheat.
\n
"
);
printk
(
KERN_EMERG
"pcwd: Card senses a CPU Overheat. Panicking!
\n
"
);
printk
(
KERN_EMERG
"pcwd: CPU Overheat.
\n
"
);
machine_power_off
();
}
if
((
!
(
card_status
&
0x01
))
&&
(
!
(
card_status
&
0x04
)))
printk
(
"pcwd: Cold boot sense.
\n
"
);
printk
(
KERN_INFO
"pcwd: Cold boot sense.
\n
"
);
}
}
...
...
@@ -353,7 +353,7 @@ static int pcwd_ioctl(struct inode *inode, struct file *file,
spin_unlock
(
&
io_lock
);
if
((
cdat
&
0x10
)
==
0
)
{
printk
(
"pcwd: Could not disable card.
\n
"
);
printk
(
KERN_INFO
"pcwd: Could not disable card.
\n
"
);
return
-
EIO
;
}
...
...
@@ -368,7 +368,7 @@ static int pcwd_ioctl(struct inode *inode, struct file *file,
spin_unlock
(
&
io_lock
);
if
(
cdat
&
0x10
)
{
printk
(
"pcwd: Could not enable card.
\n
"
);
printk
(
KERN_INFO
"pcwd: Could not enable card.
\n
"
);
return
-
EIO
;
}
return
0
;
...
...
@@ -595,7 +595,7 @@ static int __init pcwatchdog_init(void)
revision
=
PCWD_REVISION_A
;
printk
(
"pcwd: v%s Ken Hollis (kenji@bitgate.com)
\n
"
,
WD_VER
);
printk
(
KERN_INFO
"pcwd: v%s Ken Hollis (kenji@bitgate.com)
\n
"
,
WD_VER
);
/* Initial variables */
supports_temp
=
0
;
...
...
@@ -614,7 +614,7 @@ static int __init pcwatchdog_init(void)
}
if
(
!
found
)
{
printk
(
"pcwd: No card detected, or port not available.
\n
"
);
printk
(
KERN_INFO
"pcwd: No card detected, or port not available.
\n
"
);
return
(
-
EIO
);
}
#endif
...
...
@@ -627,9 +627,9 @@ static int __init pcwatchdog_init(void)
revision
=
get_revision
();
if
(
revision
==
PCWD_REVISION_A
)
printk
(
"pcwd: PC Watchdog (REV.A) detected at port 0x%03x
\n
"
,
current_readport
);
printk
(
KERN_INFO
"pcwd: PC Watchdog (REV.A) detected at port 0x%03x
\n
"
,
current_readport
);
else
if
(
revision
==
PCWD_REVISION_C
)
printk
(
"pcwd: PC Watchdog (REV.C) detected at port 0x%03x (Firmware version: %s)
\n
"
,
printk
(
KERN_INFO
"pcwd: PC Watchdog (REV.C) detected at port 0x%03x (Firmware version: %s)
\n
"
,
current_readport
,
get_firmware
());
else
{
/* Should NEVER happen, unless get_revision() fails. */
...
...
@@ -638,7 +638,7 @@ static int __init pcwatchdog_init(void)
}
if
(
supports_temp
)
printk
(
"pcwd: Temperature Option Detected.
\n
"
);
printk
(
KERN_INFO
"pcwd: Temperature Option Detected.
\n
"
);
debug_off
();
...
...
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