add format string atrribute to logging and fix all error found by it

This commit is contained in:
Andreas Schultz
2016-03-30 14:30:27 +02:00
parent cadbfa3d7e
commit dd6f6fcfe2
5 changed files with 10 additions and 8 deletions

View File

@ -102,14 +102,14 @@ static void wifi_wlan_getrates(struct wifi_device* device,
}
#endif
capwap_logging_debug("getrates: Bands Count %d", capability->bands->count);
capwap_logging_debug("getrates: Bands Count %lu", capability->bands->count);
/* Filter band */
for (i = 0; i < capability->bands->count; i++) {
struct wifi_band_capability* bandcap =
(struct wifi_band_capability*)capwap_array_get_item_pointer(capability->bands, i);
capwap_logging_debug("getrates: Bandcap Band %d", bandcap->band);
capwap_logging_debug("getrates: Bandcap Band %lu", bandcap->band);
if (bandcap->band != device->currentfrequency.band)
continue;