[HELP?] Weird problem with SMB client code

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Jan 8 07:16:42 UTC 2019


On Tue, Jan 08, 2019 at 01:30:31PM +1300, Tim Beale via samba-technical wrote:
> diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
> index 40480c8..df3b31c 100644
> --- a/libcli/smb/smbXcli_base.c
> +++ b/libcli/smb/smbXcli_base.c
> @@ -3231,6 +3231,8 @@ NTSTATUS smb2cli_req_compound_submit(struct tevent_req **reqs,
>  
>  		avail = MIN(avail, state->conn->smb2.cur_credits);
>  		if (avail < charge) {
> +			DBG_ERR("Insufficient credits. %lu available, %u needed\n",
> +				avail, charge);

Can you use '%"PRIu64"' and '%"PRIu16"' for the format specifiers?
This avoids portability problems in the future.

Thanks,

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: 0551-370000-0, mailto:kontakt at sernet.de
Gesch.F.: Dr. Johannes Loxen und Reinhild Jung
AG Göttingen: HR-B 2816 - http://www.sernet.de



More information about the samba-technical mailing list