Package: tpconfig
Version: 3.1.3-9
Severity: normal
Tags: patch
--- Please enter the report below this line. ---
A missing line feed in an error message causes the error report to be
printed on the same line as the bash prompt for the next command.
Here is how it behaves on my system:
[EMAIL PROTECTED] tmp]$ tpconfig -i
Could not open PS/2 Port [/dev/[EMAIL PROTECTED] tmp]$
A patch is attached.
--- System information. ---
Architecture: i386
Kernel: Linux 2.6.25.5
Debian Release: lenny/sid
--- Package information. ---
Depends (Version) | Installed
==========================-+-===========
libc6 (>= 2.4-1) | 2.7-10ubuntu3
debconf (>= 0.5) | 1.5.20
OR debconf-2.0 |
--
Yannick Gingras
Consultant GNU/Linux et logiciel libre
Savoir-faire Linux
diff -ur tpconfig-3.1.3.orig/tpconfig.c tpconfig-3.1.3/tpconfig.c
--- tpconfig-3.1.3.orig/tpconfig.c 2008-06-14 08:36:32.000000000 -0400
+++ tpconfig-3.1.3/tpconfig.c 2008-06-14 08:39:50.000000000 -0400
@@ -129,16 +129,16 @@
if (*fd<0)
{
if (DEBUG_LEVEL)
- fprintf (stderr, "Probing mouse port [%s]\n", mousedev);
+ fprintf (stderr, "Probing mouse port [%s].\n", mousedev);
*fd = open(mousedev, O_RDWR|O_NDELAY);
if (*fd < 0)
{
- fprintf(stderr, "Could not open PS/2 Port [%s].", mousedev);
+ fprintf(stderr, "Could not open PS/2 Port [%s].\n", mousedev);
exit (0);
}
#ifdef __linux
if (DEBUG_LEVEL)
- fprintf (stderr, "Grabbing mouse port [%s]\n", mousedev);
+ fprintf (stderr, "Grabbing mouse port [%s].\n", mousedev);
/* If AUX_GRAB kernel patch present, use it. */
while (ioctl (*fd, AUX_GRAB, 0) < 0)
{