[LinuxPPS] [PATCH] debugging messages fixup.
Rodolfo Giometti
giometti at enneenne.com
Tue Jun 26 19:11:12 CEST 2007
Hello,
can someone, please, with serial devices test this patch?
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index 01a6547..3638c68 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -477,15 +477,19 @@ uart_handle_dcd_change(struct uart_port *port, unsigned int status)
struct uart_info *info = port->info;
#ifdef CONFIG_PPS_CLIENT_UART
+ struct tty_driver *drv = port->info->tty->driver;
+
if (port->flags & UPF_HARDPPS_CD) {
if (status) {
pps_event(port->pps_source, PPS_CAPTUREASSERT, port);
- pps_dbg("serial8250: PPS assert event at %lu on source #%d",
+ pps_dbg("%s%d: PPS assert event at %lu on source #%d",
+ drv->driver_name, port->line,
jiffies, port->pps_source);
}
else {
pps_event(port->pps_source, PPS_CAPTURECLEAR, port);
- pps_dbg("serial8250: PPS clear event at %lu on source #%d",
+ pps_dbg("%s%d: PPS clear event at %lu on source #%d",
+ drv->driver_name, port->line,
jiffies, port->pps_source);
}
}
If no errors I'll put it on the git repository. :)
Thanks a lot,
Rodolfo
--
GNU/Linux Solutions e-mail: giometti at enneenne.com
Linux Device Driver giometti at gnudd.com
Embedded Systems giometti at linux.it
UNIX programming phone: +39 349 2432127
More information about the LinuxPPS
mailing list