diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2015-12-03 17:22:45 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2015-12-03 17:22:45 +0000 |
commit | 64448a2a505e7982b3b91a5e574372e3cd29e5e9 (patch) | |
tree | 8352d4771c50d6a49a9b8e861ec785ac5634eebb /sys/dev/ntb/if_ntb/if_ntb.c | |
parent | 4cc8daf7827e12b3ebe0ec2e508aecd85ae8356a (diff) | |
download | src-64448a2a505e7982b3b91a5e574372e3cd29e5e9.tar.gz src-64448a2a505e7982b3b91a5e574372e3cd29e5e9.zip |
if_ntb: Log error *before* zeroing relevant variables
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/head/; revision=291705
Diffstat (limited to 'sys/dev/ntb/if_ntb/if_ntb.c')
-rw-r--r-- | sys/dev/ntb/if_ntb/if_ntb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ntb/if_ntb/if_ntb.c b/sys/dev/ntb/if_ntb/if_ntb.c index a532d2b2a40d..4cbb3f76c4fb 100644 --- a/sys/dev/ntb/if_ntb/if_ntb.c +++ b/sys/dev/ntb/if_ntb/if_ntb.c @@ -1358,10 +1358,10 @@ ntb_set_mw(struct ntb_transport_ctx *nt, int num_mw, size_t size) mw->virt_addr = contigmalloc(mw->buff_size, M_NTB_IF, M_ZERO, 0, mw->addr_limit, mw->xlat_align, 0); if (mw->virt_addr == NULL) { + ntb_printf(0, "Unable to allocate MW buffer of size %zu/%zu\n", + mw->buff_size, mw->xlat_size); mw->xlat_size = 0; mw->buff_size = 0; - printf("ntb: Unable to allocate MW buffer of size %zu\n", - mw->xlat_size); return (ENOMEM); } /* TODO: replace with bus_space_* functions */ |