X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Futils%2Fdebug.c;h=e1dd37be898421cc3fe90957890f56359be26780;hp=b87b43c837d56582099827252e8b81309381ff01;hb=da677c1c4f37886ff7b8d31396645b12365c0e88;hpb=11220ac2f0d1245e14306f116f1c262662037740 diff --git a/lnet/utils/debug.c b/lnet/utils/debug.c index b87b43c..e1dd37b 100644 --- a/lnet/utils/debug.c +++ b/lnet/utils/debug.c @@ -752,18 +752,19 @@ int jt_dbg_mark_debug_buf(int argc, char **argv) data.ioc_inllen1 = strlen(text) + 1; data.ioc_inlbuf1 = text; - if (libcfs_ioctl_pack(&data, &buf, max) != 0) { - fprintf(stderr, "libcfs_ioctl_pack failed.\n"); - return -1; - } - rc = l_ioctl(LNET_DEV_ID, IOC_LIBCFS_MARK_DEBUG, buf); - if (rc) { - fprintf(stderr, "IOC_LIBCFS_MARK_DEBUG failed: %s\n", - strerror(errno)); - return -1; - } - return 0; + if (libcfs_ioctl_pack(&data, &buf, max) != 0) { + fprintf(stderr, "libcfs_ioctl_pack failed.\n"); + return -1; + } + + rc = l_ioctl(LNET_DEV_ID, IOC_LIBCFS_MARK_DEBUG, buf); + if (rc) { + fprintf(stderr, "IOC_LIBCFS_MARK_DEBUG failed: %s\n", + strerror(errno)); + return -1; + } + return 0; } static struct mod_paths {