Hi,

most if (debug) prints are inside of an ifdef guard, but those two
apparently aren't.  The amd64 efiboot for instance does only define
debug if EFI_DEBUG is set, which it is not per default.  So it won't
build.

We can either guard those checks as well or remove the EFI_DEBUG ifdef
guarding the debug variable define.

ok?

Patrick

diff --git a/sys/arch/i386/stand/libsa/pxe_net.c 
b/sys/arch/i386/stand/libsa/pxe_net.c
index f5c8807e2f9..47bb2fa9a6e 100644
--- a/sys/arch/i386/stand/libsa/pxe_net.c
+++ b/sys/arch/i386/stand/libsa/pxe_net.c
@@ -168,8 +168,10 @@ net_getparams(int sock)
        bootp(sock);
        if (myip.s_addr != 0)
                return 0;
+#ifdef NETIF_DEBUG
        if (debug)
                printf("net_getparams: BOOTP failed\n");
+#endif
 
        return EIO;
 }
diff --git a/sys/lib/libsa/nfs.c b/sys/lib/libsa/nfs.c
index e621f09adec..201043ef409 100644
--- a/sys/lib/libsa/nfs.c
+++ b/sys/lib/libsa/nfs.c
@@ -535,8 +535,10 @@ nfs_read(struct open_file *f, void *buf, size_t size, 
size_t *resid)
                        return (errno); /* XXX - from nfs_readdata */
                }
                if (cc == 0) {
+#ifdef NFS_DEBUG
                        if (debug)
                                printf("nfs_read: hit EOF unexpectantly");
+#endif
                        goto ret;
                }
                fp->off += cc;

Reply via email to