Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2023 22:12:46 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a6da4548613b - stable/13 - libsa/rarp.c: Change casted type and printf format
Message-ID:  <202301242212.30OMCkq0087485@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=a6da4548613bed77fa940ee0e3bd1424f461274f

commit a6da4548613bed77fa940ee0e3bd1424f461274f
Author:     MichaƂ Grzelak <mig@semihalf.com>
AuthorDate: 2022-09-28 10:36:53 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:35 +0000

    libsa/rarp.c: Change casted type and printf format
    
    Change the casted type and printf format string to avoid compilation
    failure when RARP_DEBUG macro is defined.
    
    Reviewed by:    imp
    Obtained from:  Semihalf
    Differential Revision: https://reviews.freebsd.org/D36738
    
    (cherry picked from commit ee0d06faa0a5b0e551cac4cfcad68062cb3257c7)
---
 stand/libsa/rarp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stand/libsa/rarp.c b/stand/libsa/rarp.c
index 27123e793b99..72aa2650f15e 100644
--- a/stand/libsa/rarp.c
+++ b/stand/libsa/rarp.c
@@ -83,7 +83,7 @@ rarp_getipaddress(int sock)
 	}
 #ifdef RARP_DEBUG
  	if (debug)
-		printf("rarp: d=%x\n", (u_int)d);
+		printf("rarp: d=%lx\n", (long)d);
 #endif
 
 	bzero((char*)&wbuf.data, sizeof(wbuf.data));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301242212.30OMCkq0087485>