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
1daf33ad
Commit
1daf33ad
authored
May 14, 2003
by
Dave Jones
Committed by
Linus Torvalds
May 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Fix pnpbios switch
Erk, that's a really funny looking switch. Every case fell through..
parent
01acd74f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
18 deletions
+36
-18
drivers/pnp/pnpbios/core.c
drivers/pnp/pnpbios/core.c
+36
-18
No files found.
drivers/pnp/pnpbios/core.c
View file @
1daf33ad
...
@@ -252,41 +252,59 @@ static void pnpbios_print_status(const char * module, u16 status)
...
@@ -252,41 +252,59 @@ static void pnpbios_print_status(const char * module, u16 status)
{
{
switch
(
status
)
{
switch
(
status
)
{
case
PNP_SUCCESS
:
case
PNP_SUCCESS
:
printk
(
KERN_ERR
"PnPBIOS: %s: function successful
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: function successful
\n
"
,
module
);
break
;
case
PNP_NOT_SET_STATICALLY
:
case
PNP_NOT_SET_STATICALLY
:
printk
(
KERN_ERR
"PnPBIOS: %s: unable to set static resources
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: unable to set static resources
\n
"
,
module
);
break
;
case
PNP_UNKNOWN_FUNCTION
:
case
PNP_UNKNOWN_FUNCTION
:
printk
(
KERN_ERR
"PnPBIOS: %s: invalid function number passed
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: invalid function number passed
\n
"
,
module
);
break
;
case
PNP_FUNCTION_NOT_SUPPORTED
:
case
PNP_FUNCTION_NOT_SUPPORTED
:
printk
(
KERN_ERR
"PnPBIOS: %s: function not supported on this system
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: function not supported on this system
\n
"
,
module
);
break
;
case
PNP_INVALID_HANDLE
:
case
PNP_INVALID_HANDLE
:
printk
(
KERN_ERR
"PnPBIOS: %s: invalid handle
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: invalid handle
\n
"
,
module
);
break
;
case
PNP_BAD_PARAMETER
:
case
PNP_BAD_PARAMETER
:
printk
(
KERN_ERR
"PnPBIOS: %s: invalid parameters were passed
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: invalid parameters were passed
\n
"
,
module
);
break
;
case
PNP_SET_FAILED
:
case
PNP_SET_FAILED
:
printk
(
KERN_ERR
"PnPBIOS: %s: unable to set resources
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: unable to set resources
\n
"
,
module
);
break
;
case
PNP_EVENTS_NOT_PENDING
:
case
PNP_EVENTS_NOT_PENDING
:
printk
(
KERN_ERR
"PnPBIOS: %s: no events are pending
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: no events are pending
\n
"
,
module
);
break
;
case
PNP_SYSTEM_NOT_DOCKED
:
case
PNP_SYSTEM_NOT_DOCKED
:
printk
(
KERN_ERR
"PnPBIOS: %s: the system is not docked
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: the system is not docked
\n
"
,
module
);
break
;
case
PNP_NO_ISA_PNP_CARDS
:
case
PNP_NO_ISA_PNP_CARDS
:
printk
(
KERN_ERR
"PnPBIOS: %s: no isapnp cards are installed on this system
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: no isapnp cards are installed on this system
\n
"
,
module
);
break
;
case
PNP_UNABLE_TO_DETERMINE_DOCK_CAPABILITIES
:
case
PNP_UNABLE_TO_DETERMINE_DOCK_CAPABILITIES
:
printk
(
KERN_ERR
"PnPBIOS: %s: cannot determine the capabilities of the docking station
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: cannot determine the capabilities of the docking station
\n
"
,
module
);
break
;
case
PNP_CONFIG_CHANGE_FAILED_NO_BATTERY
:
case
PNP_CONFIG_CHANGE_FAILED_NO_BATTERY
:
printk
(
KERN_ERR
"PnPBIOS: %s: unable to undock, the system does not have a battery
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: unable to undock, the system does not have a battery
\n
"
,
module
);
break
;
case
PNP_CONFIG_CHANGE_FAILED_RESOURCE_CONFLICT
:
case
PNP_CONFIG_CHANGE_FAILED_RESOURCE_CONFLICT
:
printk
(
KERN_ERR
"PnPBIOS: %s: could not dock due to resource conflicts
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: could not dock due to resource conflicts
\n
"
,
module
);
break
;
case
PNP_BUFFER_TOO_SMALL
:
case
PNP_BUFFER_TOO_SMALL
:
printk
(
KERN_ERR
"PnPBIOS: %s: the buffer passed is too small
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: the buffer passed is too small
\n
"
,
module
);
break
;
case
PNP_USE_ESCD_SUPPORT
:
case
PNP_USE_ESCD_SUPPORT
:
printk
(
KERN_ERR
"PnPBIOS: %s: use ESCD instead
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: use ESCD instead
\n
"
,
module
);
break
;
case
PNP_MESSAGE_NOT_SUPPORTED
:
case
PNP_MESSAGE_NOT_SUPPORTED
:
printk
(
KERN_ERR
"PnPBIOS: %s: the message is unsupported
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: the message is unsupported
\n
"
,
module
);
break
;
case
PNP_HARDWARE_ERROR
:
case
PNP_HARDWARE_ERROR
:
printk
(
KERN_ERR
"PnPBIOS: %s: a hardware failure has occured
\n
"
,
module
);
printk
(
KERN_ERR
"PnPBIOS: %s: a hardware failure has occured
\n
"
,
module
);
break
;
default:
default:
printk
(
KERN_ERR
"PnPBIOS: %s: unexpected status 0x%x
\n
"
,
module
,
status
);
printk
(
KERN_ERR
"PnPBIOS: %s: unexpected status 0x%x
\n
"
,
module
,
status
);
break
;
}
}
}
}
...
...
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