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
8becad95
Commit
8becad95
authored
Dec 25, 2002
by
Greg Kroah-Hartman
Committed by
Vojtech Pavlik
Dec 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: convert empeg driver to use dev_err() and dev_info() macros
parent
31164daa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/usb/serial/empeg.c
drivers/usb/serial/empeg.c
+6
-6
No files found.
drivers/usb/serial/empeg.c
View file @
8becad95
...
...
@@ -181,7 +181,7 @@ static int empeg_open (struct usb_serial_port *port, struct file *filp)
result
=
usb_submit_urb
(
port
->
read_urb
,
GFP_KERNEL
);
if
(
result
)
err
(
"%s - failed submitting read urb, error %d
"
,
__FUNCTION__
,
result
);
dev_err
(
port
->
dev
,
"%s - failed submitting read urb, error %d
\n
"
,
__FUNCTION__
,
result
);
return
result
;
}
...
...
@@ -205,7 +205,7 @@ static void empeg_close (struct usb_serial_port *port, struct file * filp)
usb_unlink_urb
(
port
->
read_urb
);
}
/* Uncomment the following line if you want to see some statistics in your syslog */
/*
info ("Bytes In = %d Bytes Out = %d
", bytes_in, bytes_out); */
/*
dev_info (port->dev, "Bytes In = %d Bytes Out = %d\n
", bytes_in, bytes_out); */
}
...
...
@@ -248,7 +248,7 @@ static int empeg_write (struct usb_serial_port *port, int from_user, const unsig
if
(
urb
->
transfer_buffer
==
NULL
)
{
urb
->
transfer_buffer
=
kmalloc
(
URB_TRANSFER_BUFFER_SIZE
,
GFP_ATOMIC
);
if
(
urb
->
transfer_buffer
==
NULL
)
{
err
(
"%s no more kernel memory...
"
,
__FUNCTION__
);
dev_err
(
port
->
dev
,
"%s no more kernel memory...
\n
"
,
__FUNCTION__
);
goto
exit
;
}
}
...
...
@@ -278,7 +278,7 @@ static int empeg_write (struct usb_serial_port *port, int from_user, const unsig
/* send it down the pipe */
status
=
usb_submit_urb
(
urb
,
GFP_ATOMIC
);
if
(
status
)
{
err
(
"%s - usb_submit_urb(write bulk) failed with status = %d
"
,
__FUNCTION__
,
status
);
dev_err
(
port
->
dev
,
"%s - usb_submit_urb(write bulk) failed with status = %d
\n
"
,
__FUNCTION__
,
status
);
bytes_sent
=
status
;
break
;
}
...
...
@@ -426,7 +426,7 @@ static void empeg_read_bulk_callback (struct urb *urb, struct pt_regs *regs)
result
=
usb_submit_urb
(
port
->
read_urb
,
GFP_ATOMIC
);
if
(
result
)
err
(
"%s - failed resubmitting read urb, error %d
"
,
__FUNCTION__
,
result
);
dev_err
(
urb
->
dev
->
dev
,
"%s - failed resubmitting read urb, error %d
\n
"
,
__FUNCTION__
,
result
);
return
;
...
...
@@ -451,7 +451,7 @@ static void empeg_unthrottle (struct usb_serial_port *port)
result
=
usb_submit_urb
(
port
->
read_urb
,
GFP_ATOMIC
);
if
(
result
)
err
(
"%s - failed submitting read urb, error %d
"
,
__FUNCTION__
,
result
);
dev_err
(
port
->
dev
,
"%s - failed submitting read urb, error %d
\n
"
,
__FUNCTION__
,
result
);
return
;
}
...
...
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