arch/powerpc/platforms/512x/clock-commonclk.c:824: wrong % specifier ?

From: David Binderman
Date: Mon Jun 27 2016 - 03:59:47 EST


Hello there,

linux-4.7-rc5/arch/powerpc/platforms/512x/clock-commonclk.c:824]:
(warning) %d in format string (no. 1) requires 'int' but the argument
type is 'size_t {aka unsigned long}'.

Source code is

snprintf(name, sizeof(name), "psc%d", mclk_idx);


Regards

David Binderman