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:
parent
3347fe26a0
commit
793e9963b8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue