Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/btattach use %zd for ssize_t argument



details:   https://anonhg.NetBSD.org/src/rev/5f61ccce2990
branches:  trunk
changeset: 752869:5f61ccce2990
user:      plunky <plunky%NetBSD.org@localhost>
date:      Mon Mar 08 21:48:42 2010 +0000

description:
use %zd for ssize_t argument

diffstat:

 usr.sbin/btattach/btattach.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8ad2965272b1 -r 5f61ccce2990 usr.sbin/btattach/btattach.c
--- a/usr.sbin/btattach/btattach.c      Mon Mar 08 21:19:29 2010 +0000
+++ b/usr.sbin/btattach/btattach.c      Mon Mar 08 21:48:42 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: btattach.c,v 1.9 2010/03/08 21:19:29 plunky Exp $      */
+/*     $NetBSD: btattach.c,v 1.10 2010/03/08 21:48:42 plunky Exp $     */
 
 /*-
  * Copyright (c) 2008 Iain Hibbert
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008 Iain Hibbert.  All rights reserved.");
-__RCSID("$NetBSD: btattach.c,v 1.9 2010/03/08 21:19:29 plunky Exp $");
+__RCSID("$NetBSD: btattach.c,v 1.10 2010/03/08 21:48:42 plunky Exp $");
 
 #include <sys/ioctl.h>
 #include <sys/param.h>
@@ -589,7 +589,7 @@
 
                n = read(fd, buf, sizeof(buf));
                if (opt_debug > 1)
-                       printf("  %dbyte read\n", n);
+                       printf("  %zd bytes read\n", n);
                if (n < 0) {
                        if (i == 0 && errno == EAGAIN) {
                                printf("This module is *maybe* supported by btuart(4).\n"



Home | Main Index | Thread Index | Old Index