Source-Changes-HG archive

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

[src/trunk]: src/dist/ntp/libparse Fix LP64 printf format problems.



details:   https://anonhg.NetBSD.org/src/rev/ee286d4f6e20
branches:  trunk
changeset: 508901:ee286d4f6e20
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Apr 21 21:57:16 2001 +0000

description:
Fix LP64 printf format problems.

diffstat:

 dist/ntp/libparse/clk_computime.c |  4 ++--
 dist/ntp/libparse/clk_dcf7000.c   |  4 ++--
 dist/ntp/libparse/clk_hopf6021.c  |  4 ++--
 dist/ntp/libparse/clk_meinberg.c  |  6 +++---
 dist/ntp/libparse/clk_rawdcf.c    |  4 ++--
 dist/ntp/libparse/clk_rcc8000.c   |  4 ++--
 dist/ntp/libparse/clk_schmid.c    |  4 ++--
 dist/ntp/libparse/clk_trimtaip.c  |  4 ++--
 dist/ntp/libparse/clk_varitext.c  |  4 ++--
 dist/ntp/libparse/clk_wharton.c   |  4 ++--
 10 files changed, 21 insertions(+), 21 deletions(-)

diffs (189 lines):

diff -r 0416008d8f40 -r ee286d4f6e20 dist/ntp/libparse/clk_computime.c
--- a/dist/ntp/libparse/clk_computime.c Sat Apr 21 21:35:53 2001 +0000
+++ b/dist/ntp/libparse/clk_computime.c Sat Apr 21 21:57:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clk_computime.c,v 1.1.1.1 2000/03/29 12:38:51 simonb Exp $     */
+/*     $NetBSD: clk_computime.c,v 1.2 2001/04/21 21:57:16 thorpej Exp $        */
 
 #ifdef HAVE_CONFIG_H
 # include <config.h>
@@ -143,7 +143,7 @@
 {
        unsigned int rtc;
        
-       parseprintf(DD_PARSE, ("inp_computime(0x%x, 0x%x, ...)\n", (int)parseio, (int)ch));
+       parseprintf(DD_PARSE, ("inp_computime(0x%lx, 0x%x, ...)\n", (unsigned long)parseio, ch));
        
        switch (ch)
        {
diff -r 0416008d8f40 -r ee286d4f6e20 dist/ntp/libparse/clk_dcf7000.c
--- a/dist/ntp/libparse/clk_dcf7000.c   Sat Apr 21 21:35:53 2001 +0000
+++ b/dist/ntp/libparse/clk_dcf7000.c   Sat Apr 21 21:57:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clk_dcf7000.c,v 1.1.1.1 2000/03/29 12:38:51 simonb Exp $       */
+/*     $NetBSD: clk_dcf7000.c,v 1.2 2001/04/21 21:57:16 thorpej Exp $  */
 
 /*
  * /src/NTP/ntp-4/libparse/clk_dcf7000.c,v 4.6 1999/11/28 09:13:49 kardel RELEASE_19991128_A
@@ -142,7 +142,7 @@
 {
        unsigned int rtc;
        
-       parseprintf(DD_PARSE, ("inp_dcf7000(0x%x, 0x%x, ...)\n", (int)parseio, (int)ch));
+       parseprintf(DD_PARSE, ("inp_dcf7000(0x%lx, 0x%x, ...)\n", (unsigned long)parseio, ch));
        
        switch (ch)
        {
diff -r 0416008d8f40 -r ee286d4f6e20 dist/ntp/libparse/clk_hopf6021.c
--- a/dist/ntp/libparse/clk_hopf6021.c  Sat Apr 21 21:35:53 2001 +0000
+++ b/dist/ntp/libparse/clk_hopf6021.c  Sat Apr 21 21:57:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clk_hopf6021.c,v 1.1.1.1 2000/03/29 12:38:51 simonb Exp $      */
+/*     $NetBSD: clk_hopf6021.c,v 1.2 2001/04/21 21:57:16 thorpej Exp $ */
 
 /*
  * /src/NTP/ntp-4/libparse/clk_hopf6021.c,v 4.7 1999/11/28 09:13:49 kardel RELEASE_19991128_A
@@ -231,7 +231,7 @@
 {
        unsigned int rtc;
        
-       parseprintf(DD_PARSE, ("inp_hopf6021(0x%x, 0x%x, ...)\n", (int)parseio, (int)ch));
+       parseprintf(DD_PARSE, ("inp_hopf6021(0x%lx, 0x%x, ...)\n", (unsigned long)parseio, ch));
        
        switch (ch)
        {
diff -r 0416008d8f40 -r ee286d4f6e20 dist/ntp/libparse/clk_meinberg.c
--- a/dist/ntp/libparse/clk_meinberg.c  Sat Apr 21 21:35:53 2001 +0000
+++ b/dist/ntp/libparse/clk_meinberg.c  Sat Apr 21 21:57:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clk_meinberg.c,v 1.1.1.1 2000/03/29 12:38:51 simonb Exp $      */
+/*     $NetBSD: clk_meinberg.c,v 1.2 2001/04/21 21:57:16 thorpej Exp $ */
 
 /*
  * /src/NTP/ntp-4/libparse/clk_meinberg.c,v 4.8 1999/11/28 09:13:50 kardel RELEASE_19991128_A
@@ -414,7 +414,7 @@
 {
        unsigned int rtc;
        
-       parseprintf(DD_PARSE, ("mbg_input(0x%x, 0x%x, ...)\n", (int)parseio, (int)ch));
+       parseprintf(DD_PARSE, ("mbg_input(0x%lx, 0x%x, ...)\n", (unsigned long)parseio, ch));
        
        switch (ch)
        {
@@ -582,7 +582,7 @@
   
   msg_buf = (struct msg_buf *)parseio->parse_pdata;
 
-  parseprintf(DD_PARSE, ("gps_input(0x%x, 0x%x, ...)\n", (int)parseio, (int)ch));
+  parseprintf(DD_PARSE, ("gps_input(0x%lx, 0x%x, ...)\n", (unsigned long)parseio, ch));
 
   if (!msg_buf)
     return PARSE_INP_SKIP;
diff -r 0416008d8f40 -r ee286d4f6e20 dist/ntp/libparse/clk_rawdcf.c
--- a/dist/ntp/libparse/clk_rawdcf.c    Sat Apr 21 21:35:53 2001 +0000
+++ b/dist/ntp/libparse/clk_rawdcf.c    Sat Apr 21 21:57:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clk_rawdcf.c,v 1.1.1.1 2000/03/29 12:38:51 simonb Exp $        */
+/*     $NetBSD: clk_rawdcf.c,v 1.2 2001/04/21 21:57:16 thorpej Exp $   */
 
 /*
  * /src/NTP/ntp-4/libparse/clk_rawdcf.c,v 4.9 1999/12/06 13:42:23 kardel Exp
@@ -551,7 +551,7 @@
 {
        static struct timeval timeout = { 1, 500000 }; /* 1.5 secongs denote second #60 */
        
-       parseprintf(DD_PARSE, ("inp_rawdcf(0x%x, 0x%x, ...)\n", (int)parseio, (int)ch));
+       parseprintf(DD_PARSE, ("inp_rawdcf(0x%lx, 0x%x, ...)\n", (unsigned long)parseio, ch));
        
        parseio->parse_dtime.parse_stime = *tstamp; /* collect timestamp */
 
diff -r 0416008d8f40 -r ee286d4f6e20 dist/ntp/libparse/clk_rcc8000.c
--- a/dist/ntp/libparse/clk_rcc8000.c   Sat Apr 21 21:35:53 2001 +0000
+++ b/dist/ntp/libparse/clk_rcc8000.c   Sat Apr 21 21:57:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clk_rcc8000.c,v 1.1.1.1 2000/03/29 12:38:51 simonb Exp $       */
+/*     $NetBSD: clk_rcc8000.c,v 1.2 2001/04/21 21:57:16 thorpej Exp $  */
 
 /*
  * /src/NTP/ntp-4/libparse/clk_rcc8000.c,v 4.6 1999/11/28 09:13:51 kardel RELEASE_19991128_A
@@ -145,7 +145,7 @@
 {
        unsigned int rtc;
        
-       parseprintf(DD_PARSE, ("inp_rcc8000(0x%x, 0x%x, ...)\n", (int)parseio, (int)ch));
+       parseprintf(DD_PARSE, ("inp_rcc8000(0x%lx, 0x%x, ...)\n", (unsigned long)parseio, ch));
        
        switch (ch)
        {
diff -r 0416008d8f40 -r ee286d4f6e20 dist/ntp/libparse/clk_schmid.c
--- a/dist/ntp/libparse/clk_schmid.c    Sat Apr 21 21:35:53 2001 +0000
+++ b/dist/ntp/libparse/clk_schmid.c    Sat Apr 21 21:57:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clk_schmid.c,v 1.1.1.1 2000/03/29 12:38:51 simonb Exp $        */
+/*     $NetBSD: clk_schmid.c,v 1.2 2001/04/21 21:57:16 thorpej Exp $   */
 
 /*
  * /src/NTP/ntp-4/libparse/clk_schmid.c,v 4.5 1999/11/28 09:13:51 kardel RELEASE_19991128_A
@@ -189,7 +189,7 @@
 {
        unsigned int rtc;
        
-       parseprintf(DD_PARSE, ("inp_schmid(0x%x, 0x%x, ...)\n", (int)parseio, (int)ch));
+       parseprintf(DD_PARSE, ("inp_schmid(0x%lx, 0x%x, ...)\n", (unsigned long)parseio, ch));
        
        switch (ch)
        {
diff -r 0416008d8f40 -r ee286d4f6e20 dist/ntp/libparse/clk_trimtaip.c
--- a/dist/ntp/libparse/clk_trimtaip.c  Sat Apr 21 21:35:53 2001 +0000
+++ b/dist/ntp/libparse/clk_trimtaip.c  Sat Apr 21 21:57:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clk_trimtaip.c,v 1.1.1.1 2000/03/29 12:38:51 simonb Exp $      */
+/*     $NetBSD: clk_trimtaip.c,v 1.2 2001/04/21 21:57:16 thorpej Exp $ */
 
 /*
  * /src/NTP/ntp-4/libparse/clk_trimtaip.c,v 4.7 1999/11/28 09:13:51 kardel RELEASE_19991128_A
@@ -130,7 +130,7 @@
 {
        unsigned int rtc;
        
-       parseprintf(DD_PARSE, ("inp_trimtaip(0x%x, 0x%x, ...)\n", (int)parseio, (int)ch));
+       parseprintf(DD_PARSE, ("inp_trimtaip(0x%lx, 0x%x, ...)\n", (unsigned long)parseio, ch));
        
        switch (ch)
        {
diff -r 0416008d8f40 -r ee286d4f6e20 dist/ntp/libparse/clk_varitext.c
--- a/dist/ntp/libparse/clk_varitext.c  Sat Apr 21 21:35:53 2001 +0000
+++ b/dist/ntp/libparse/clk_varitext.c  Sat Apr 21 21:57:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clk_varitext.c,v 1.1.1.1 2000/03/29 12:38:51 simonb Exp $      */
+/*     $NetBSD: clk_varitext.c,v 1.2 2001/04/21 21:57:16 thorpej Exp $ */
 
 #ifdef HAVE_CONFIG_H
 # include <config.h>
@@ -174,7 +174,7 @@
   struct varitext *t = (struct varitext *)parseio->parse_pdata;
   int    rtc;
 
-  parseprintf(DD_PARSE, ("inp_varitext(0x%x, 0x%x, ...)\n", (int)parseio, (int)ch));
+  parseprintf(DD_PARSE, ("inp_varitext(0x%lx, 0x%x, ...)\n", (unsigned long)parseio, ch));
 
   if (!t) 
     return PARSE_INP_SKIP;     /* local data not allocated - sigh! */
diff -r 0416008d8f40 -r ee286d4f6e20 dist/ntp/libparse/clk_wharton.c
--- a/dist/ntp/libparse/clk_wharton.c   Sat Apr 21 21:35:53 2001 +0000
+++ b/dist/ntp/libparse/clk_wharton.c   Sat Apr 21 21:57:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clk_wharton.c,v 1.1.1.2 2000/04/22 14:53:06 simonb Exp $       */
+/*     $NetBSD: clk_wharton.c,v 1.2 2001/04/21 21:57:17 thorpej Exp $  */
 
 /*
  * /src/NTP/ntp-4/libparse/clk_wharton.c,v 4.1 1999/02/28 15:27:24 kardel RELEASE_19990228_A
@@ -136,7 +136,7 @@
 {
        unsigned int rtc;
        
-       parseprintf(DD_PARSE, ("inp_wharton_400a(0x%x, 0x%x, ...)\n", (int)parseio, (int)ch));
+       parseprintf(DD_PARSE, ("inp_wharton_400a(0x%lx, 0x%x, ...)\n", (unsigned long)parseio, ch));
        
        switch (ch)
        {



Home | Main Index | Thread Index | Old Index