diff options
author | ps <ps@FreeBSD.org> | 2000-05-01 17:55:05 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2000-05-01 17:55:05 +0000 |
commit | 793c8f6d02d8e9c2fc12e844fc54d91e8d11efee (patch) | |
tree | b5bba3bcd64d5f5ea208995a99d34198313693f7 | |
parent | 816e92565a65b81ec26724758fea6f694964d18f (diff) | |
download | FreeBSD-src-793c8f6d02d8e9c2fc12e844fc54d91e8d11efee.zip FreeBSD-src-793c8f6d02d8e9c2fc12e844fc54d91e8d11efee.tar.gz |
Wrap the failure warnings around PXE_DEBUG in the cleanup routine.
It does not matter if they fail, so dont print anything about it
unless we are debugging.
-rw-r--r-- | sys/boot/i386/libi386/pxe.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/boot/i386/libi386/pxe.c b/sys/boot/i386/libi386/pxe.c index 44bb753..d6737c2 100644 --- a/sys/boot/i386/libi386/pxe.c +++ b/sys/boot/i386/libi386/pxe.c @@ -361,14 +361,20 @@ pxe_cleanup(void) return; pxe_call(PXENV_UNDI_SHUTDOWN); - if (undi_shutdown_p->Status != 0) + +#ifdef PXE_DEBUG + if (debug && undi_shutdown_p->Status != 0) printf("pxe_cleanup: UNDI_SHUTDOWN failed %x\n", - undi_shutdown_p->Status); + undi_shutdown_p->Status); +#endif pxe_call(PXENV_UNLOAD_STACK); - if (unload_stack_p->Status != 0) + +#ifdef PXE_DEBUG + if (debug && unload_stack_p->Status != 0) printf("pxe_cleanup: UNLOAD_STACK failed %x\n", unload_stack_p->Status); +#endif } void |