sdib.info.info1 = discard_const_p(struct secrets_domain_info1, info1);
- ndr_print_debug((ndr_print_fn_t)ndr_print_secrets_domain_infoB,
- name, &sdib);
+ NDR_PRINT_DEBUG_LEVEL(lvl, secrets_domain_infoB, &sdib);
}
char *secrets_domain_info_string(TALLOC_CTX *mem_ctx, const struct secrets_domain_info1 *info1,
printf("Error getting security descriptor: %s\n", win_errstr(error));
return WERR_OK;
}
- ndr_print_debug((ndr_print_fn_t)ndr_print_security_descriptor,
- "Security", sec_desc);
+ NDR_PRINT_DEBUG(security_descriptor, sec_desc);
talloc_free(sec_desc);
return WERR_OK;
ndr_err = ndr_pull_struct_blob(&plain_data, ptr,
ptr, pull_fn);
if (NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
- ndr_print_debug(print_fn, name, ptr);
+ (void)ndr_print_debug(1, print_fn, name, ptr, __location__, __func__);
} else {
DEBUG(0, ("Failed to decode %s\n", name));
}
ndr_err,
"ndr_pull_ntprinting_printer");
#if 0
- ndr_print_debug((ndr_print_fn_t) ndr_print_ntprinting_printer,
- "ntprinter",
- &r);
+ NDR_PRINT_DEBUG(1, ntprinting_printer, &r);
#endif
torture_assert_str_equal(tctx,
r.info.printername,
if (!security_descriptor_mask_equal(sd1.sd, sdbuf->sd, \
~SEC_DESC_SACL_PRESENT)) {\
torture_comment(tctx, "Security Descriptor Mismatch for %s:\n", #sd1);\
- ndr_print_debug((ndr_print_fn_t)ndr_print_security_descriptor, "SamSync", sd1.sd);\
- ndr_print_debug((ndr_print_fn_t)ndr_print_security_descriptor, "SamR", sdbuf->sd);\
+ NDR_PRINT_DEBUG(security_descriptor, sd1.sd);\
+ NDR_PRINT_DEBUG(security_descriptor, sdbuf->sd);\
ret = false;\
}\
}\
torture_assert_ndr_success(torture, ndr_ret,
"ndr_pull_req_resume_key_rsp");
- ndr_print_debug((ndr_print_fn_t)ndr_print_req_resume_key_rsp, "yo", &res_key);
+ NDR_PRINT_DEBUG(req_resume_key_rsp, &res_key);
talloc_free(tmp_ctx);
return true;
torture_assert_ndr_success(torture, ndr_ret,
"ndr_pull_req_resume_key_rsp");
- ndr_print_debug((ndr_print_fn_t)ndr_print_req_resume_key_rsp, "yo", &res_key);
+ NDR_PRINT_DEBUG(req_resume_key_rsp, &res_key);
ZERO_STRUCT(ioctl);
ioctl.smb2.level = RAW_IOCTL_SMB2;
torture_assert_ndr_success(torture, ndr_ret,
"ndr_pull_req_resume_key_rsp");
- ndr_print_debug((ndr_print_fn_t)ndr_print_req_resume_key_rsp, "yo", &res_key);
+ NDR_PRINT_DEBUG(req_resume_key_rsp, &res_key);
talloc_free(tmp_ctx);
return true;
torture_assert_ndr_success(torture, ndr_ret,
"ndr_pull_fsctl_net_iface_info");
- ndr_print_debug((ndr_print_fn_t)ndr_print_fsctl_net_iface_info,
- "Network Interface Info", &net_iface);
+ NDR_PRINT_DEBUG(fsctl_net_iface_info, &net_iface);
talloc_free(tmp_ctx);
return true;