Adam Steen wrote:
> 'log(DEBUG, "Solo5: clock_init(): freq=%lu\n", freq);'
> 
> but am getting the following error
> 
> '
> error: format specifies type 'unsigned long' but the argument has type 
> 'uint64_t' (aka 'unsigned long long') [-Werror,-Wformat]
>         freq);
>         ^~~~~~~~
> 1 error generated.
> '
> 
> The easy fix is to change the format to '%llu', but this brakes FreeBSD and 
> Linux. Am i missing something or should i be investigating the log 
> implementation?

The easy fix is log("%llu", (long long)freq) which should work everywhere.

Reply via email to