aboutsummaryrefslogtreecommitdiffstats
path: root/core/fs/pxe/core.c
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2013-08-16 12:55:53 -0400
committerGene Cumm <gene.cumm@gmail.com>2013-09-23 17:25:32 -0400
commit74b2ae4ac00debfc70587960628ca44fd6cc5fbf (patch)
tree7b4a2bcf6854288248ae896c397c99ffeb925bf2 /core/fs/pxe/core.c
parentcfc678be72a9d93c6d7511d585cfcfd75e63bb11 (diff)
downloadsyslinux-74b2ae4ac00debfc70587960628ca44fd6cc5fbf.tar.gz
syslinux-74b2ae4ac00debfc70587960628ca44fd6cc5fbf.tar.xz
syslinux-74b2ae4ac00debfc70587960628ca44fd6cc5fbf.zip
PXE: use ddprintf macro
Messages are needed before ldlinux.c32 is loaded Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'core/fs/pxe/core.c')
-rw-r--r--core/fs/pxe/core.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/core/fs/pxe/core.c b/core/fs/pxe/core.c
index c1de8957..e7dc8fea 100644
--- a/core/fs/pxe/core.c
+++ b/core/fs/pxe/core.c
@@ -48,7 +48,7 @@ int net_core_open(struct pxe_pvt_inode *socket, enum net_core_proto proto)
priv->conn->recv_timeout = 15; /* A 15 ms recv timeout... */
err = netconn_bind(priv->conn, NULL, 0);
if (err) {
- printf("netconn_bind error %d\n", err);
+ ddprintf("netconn_bind error %d\n", err);
return -1;
}
@@ -83,7 +83,7 @@ void net_core_connect(struct pxe_pvt_inode *socket, uint32_t ip,
struct net_private_lwip *priv = &socket->net.lwip;
struct ip_addr addr;
- dprintf2("net_core_connect: %08X %04X\n", ntohl(ip), port);
+ dprintf("net_core_connect: %08X %04X\n", ntohl(ip), port);
addr.addr = ip;
netconn_connect(priv->conn, &addr, port);
}
@@ -155,13 +155,13 @@ void net_core_send(struct pxe_pvt_inode *socket, const void *data, size_t len)
nbuf = netbuf_new();
if (!nbuf) {
- printf("netbuf allocation error\n");
+ ddprintf("netbuf allocation error\n");
return;
}
pbuf = netbuf_alloc(nbuf, len);
if (!pbuf) {
- printf("pbuf allocation error\n");
+ ddprintf("pbuf allocation error\n");
goto out;
}
@@ -169,7 +169,7 @@ void net_core_send(struct pxe_pvt_inode *socket, const void *data, size_t len)
err = netconn_send(conn, nbuf);
if (err) {
- printf("netconn_send error %d\n", err);
+ ddprintf("netconn_send error %d\n", err);
goto out;
}
@@ -197,13 +197,13 @@ void net_core_sendto(struct pxe_pvt_inode *socket, const void *data,
nbuf = netbuf_new();
if (!nbuf) {
- printf("netbuf allocation error\n");
+ ddprintf("netbuf allocation error\n");
return;
}
pbuf = netbuf_alloc(nbuf, len);
if (!pbuf) {
- printf("pbuf allocation error\n");
+ ddprintf("pbuf allocation error\n");
goto out;
}
@@ -214,7 +214,7 @@ void net_core_sendto(struct pxe_pvt_inode *socket, const void *data,
err = netconn_sendto(conn, nbuf, &addr, port);
if (err) {
- printf("netconn_sendto error %d\n", err);
+ ddprintf("netconn_sendto error %d\n", err);
goto out;
}
@@ -238,7 +238,7 @@ void net_core_init(void)
/* Start up the undi driver for lwip */
err = undiif_start(IPInfo.myip, IPInfo.netmask, IPInfo.gateway);
if (err) {
- printf("undiif driver failed to start: %d\n", err);
+ ddprintf("undiif driver failed to start: %d\n", err);
kaboom();
}
@@ -254,7 +254,7 @@ void probe_undi(void)
pxe_call(PXENV_UNDI_GET_INFORMATION, &pxe_undi_info);
pxe_call(PXENV_UNDI_GET_IFACE_INFO, &pxe_undi_iface);
- printf("UNDI: baseio %04x int %d MTU %d type %d \"%s\" flags 0x%x\n",
+ ddprintf("UNDI: baseio %04x int %d MTU %d type %d \"%s\" flags 0x%x\n",
pxe_undi_info.BaseIo, pxe_undi_info.IntNumber,
pxe_undi_info.MaxTranUnit, pxe_undi_info.HwType,
pxe_undi_iface.IfaceType, pxe_undi_iface.ServiceFlags);