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
79251552
Commit
79251552
authored
Dec 27, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: more dev_printk() cleanups.
parent
d009dec1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
drivers/usb/core/usb-debug.c
drivers/usb/core/usb-debug.c
+1
-1
drivers/usb/core/usb.c
drivers/usb/core/usb.c
+3
-3
No files found.
drivers/usb/core/usb-debug.c
View file @
79251552
...
@@ -177,7 +177,7 @@ void usb_show_string(struct usb_device *dev, char *id, int index)
...
@@ -177,7 +177,7 @@ void usb_show_string(struct usb_device *dev, char *id, int index)
if
(
!
(
buf
=
kmalloc
(
256
,
GFP_KERNEL
)))
if
(
!
(
buf
=
kmalloc
(
256
,
GFP_KERNEL
)))
return
;
return
;
if
(
usb_string
(
dev
,
index
,
buf
,
256
)
>
0
)
if
(
usb_string
(
dev
,
index
,
buf
,
256
)
>
0
)
printk
(
KERN_INFO
"%s: %s
\n
"
,
id
,
buf
);
dev_printk
(
KERN_INFO
,
dev
->
dev
,
"%s: %s
\n
"
,
id
,
buf
);
kfree
(
buf
);
kfree
(
buf
);
}
}
...
...
drivers/usb/core/usb.c
View file @
79251552
...
@@ -931,7 +931,7 @@ static void set_device_description (struct usb_device *dev)
...
@@ -931,7 +931,7 @@ static void set_device_description (struct usb_device *dev)
if
(
prod
&&
usb_string
(
dev
,
prod
,
prod_str
,
256
)
>
0
)
{
if
(
prod
&&
usb_string
(
dev
,
prod
,
prod_str
,
256
)
>
0
)
{
#ifdef DEBUG
#ifdef DEBUG
printk
(
KERN_INFO
"Product: %s
\n
"
,
prod_str
);
dev_printk
(
KERN_INFO
,
dev
->
dev
,
"Product: %s
\n
"
,
prod_str
);
#endif
#endif
}
else
{
}
else
{
prod_str
=
0
;
prod_str
=
0
;
...
@@ -939,7 +939,7 @@ static void set_device_description (struct usb_device *dev)
...
@@ -939,7 +939,7 @@ static void set_device_description (struct usb_device *dev)
if
(
mfgr
&&
usb_string
(
dev
,
mfgr
,
mfgr_str
,
256
)
>
0
)
{
if
(
mfgr
&&
usb_string
(
dev
,
mfgr
,
mfgr_str
,
256
)
>
0
)
{
#ifdef DEBUG
#ifdef DEBUG
printk
(
KERN_INFO
"Manufacturer: %s
\n
"
,
mfgr_str
);
dev_printk
(
KERN_INFO
,
dev
->
dev
,
"Manufacturer: %s
\n
"
,
mfgr_str
);
#endif
#endif
}
else
{
}
else
{
mfgr_str
=
0
;
mfgr_str
=
0
;
...
@@ -1108,7 +1108,7 @@ int usb_new_device(struct usb_device *dev, struct device *parent)
...
@@ -1108,7 +1108,7 @@ int usb_new_device(struct usb_device *dev, struct device *parent)
/* USB device state == configured ... tell the world! */
/* USB device state == configured ... tell the world! */
d
bg
(
"new device strings: Mfr=%d, Product=%d, SerialNumber=%d
"
,
d
ev_dbg
(
dev
->
dev
,
"new device strings: Mfr=%d, Product=%d, SerialNumber=%d
\n
"
,
dev
->
descriptor
.
iManufacturer
,
dev
->
descriptor
.
iProduct
,
dev
->
descriptor
.
iSerialNumber
);
dev
->
descriptor
.
iManufacturer
,
dev
->
descriptor
.
iProduct
,
dev
->
descriptor
.
iSerialNumber
);
set_device_description
(
dev
);
set_device_description
(
dev
);
...
...
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