Kaynağa Gözat

qcacld-3.0: Fix format build error

This fixes below build error.

format '%lu' expects argument of type 'long unsigned int',
but argument 6 has type 'unsigned int' [-Werror=format=]

Change-Id: I54b2e171ab5c7799af3e23a5d1fd8d4cb3034983
CRs-Fixed: 2344741
jiad 6 yıl önce
ebeveyn
işleme
8196e0a900
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      core/wma/src/wma_mgmt.c

+ 2 - 1
core/wma/src/wma_mgmt.c

@@ -2709,7 +2709,8 @@ static QDF_STATUS wma_store_bcn_tmpl(tp_wma_handle wma, uint8_t vdev_id,
 	len = *(uint32_t *) &bcn_info->beacon[0];
 	if (len > SIR_MAX_BEACON_SIZE - sizeof(uint32_t)) {
 		WMA_LOGE("%s: Received beacon len %u exceeding max limit %lu",
-			 __func__, len, SIR_MAX_BEACON_SIZE - sizeof(uint32_t));
+			 __func__, len, (unsigned long)(
+			 SIR_MAX_BEACON_SIZE - sizeof(uint32_t)));
 		return QDF_STATUS_E_INVAL;
 	}
 	WMA_LOGD("%s: Storing received beacon template buf to local buffer",