diff options
author | marcel <marcel@FreeBSD.org> | 1999-08-17 10:27:55 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-08-17 10:27:55 +0000 |
commit | 42f708bf62a352e3bcea882c1cccc3709d4aad0b (patch) | |
tree | e13c3fa6db487b45018ac9066584e8494f8876ae /sys/i386/linux | |
parent | c1bb094a2ca9b6e1c59c6f50c10578c7b2009714 (diff) | |
download | FreeBSD-src-42f708bf62a352e3bcea882c1cccc3709d4aad0b.zip FreeBSD-src-42f708bf62a352e3bcea882c1cccc3709d4aad0b.tar.gz |
Fix a bug in debug-printfs of struct linux_termios fields, where I forgot to
change the format specifier after changing the definition of the structure.
Submitted by: billf
Commented on by: bde
Diffstat (limited to 'sys/i386/linux')
-rw-r--r-- | sys/i386/linux/linux_ioctl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/linux/linux_ioctl.c b/sys/i386/linux/linux_ioctl.c index b65b2fa..53becd7 100644 --- a/sys/i386/linux/linux_ioctl.c +++ b/sys/i386/linux/linux_ioctl.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_ioctl.c,v 1.39 1999/08/14 10:30:38 marcel Exp $ + * $Id: linux_ioctl.c,v 1.40 1999/08/14 13:26:44 marcel Exp $ */ #include <sys/param.h> @@ -254,9 +254,9 @@ bsd_to_linux_termios(struct termios *bsd_termios, linux_termios->c_line = 0; #ifdef DEBUG printf("LINUX: LINUX termios structure (output):\n"); - printf("i=%08lx o=%08lx c=%08lx l=%08lx line=%d\n", + printf("i=%08x o=%08x c=%08x l=%08x line=%d\n", linux_termios->c_iflag, linux_termios->c_oflag, linux_termios->c_cflag, - linux_termios->c_lflag, linux_termios->c_line); + linux_termios->c_lflag, (int)linux_termios->c_line); printf("c_cc "); for (i=0; i<LINUX_NCCS; i++) printf("%02x ", linux_termios->c_cc[i]); @@ -272,9 +272,9 @@ linux_to_bsd_termios(struct linux_termios *linux_termios, int i; #ifdef DEBUG printf("LINUX: LINUX termios structure (input):\n"); - printf("i=%08lx o=%08lx c=%08lx l=%08lx line=%d\n", + printf("i=%08x o=%08x c=%08x l=%08x line=%d\n", linux_termios->c_iflag, linux_termios->c_oflag, linux_termios->c_cflag, - linux_termios->c_lflag, linux_termios->c_line); + linux_termios->c_lflag, (int)linux_termios->c_line); printf("c_cc "); for (i=0; i<LINUX_NCCS; i++) printf("%02x ", linux_termios->c_cc[i]); |