hantek-4032l: Fix a compiler warning.

api.c: In function 'config_set':
  api.c:352:5: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'uint64_t' [-Wformat=]
       sr_err("invalid sample range 2k...64M: %ld",
       ^
This commit is contained in:
Uwe Hermann 2018-02-09 21:26:38 +01:00
parent 3347fe26a0
commit 793e9963b8
1 changed files with 2 additions and 2 deletions

View File

@ -349,8 +349,8 @@ static int config_set(uint32_t key, GVariant *data,
number_samples &= 0xfffffe00;
if (number_samples < 2048
|| number_samples > 64 * 1024 * 1024) {
sr_err("invalid sample range 2k...64M: %ld",
number_samples);
sr_err("invalid sample range 2k...64M: %"
PRIu64, number_samples);
return SR_ERR;
}
cmd_pkt->sample_size = number_samples;