瀏覽代碼

qcacld-3.0: Provide reason to QDF_DEBUG_PANIC()

A common pattern in WLAN to panic the driver is to log the reason and
then unconditionally panic. QDF_DEBUG_PANIC() takes a reason string to
help make the reason for the panic more obvious, but it is not always
used. Ensure all callers of QDF_DEBUG_PANIC() provide a reason string.

Change-Id: I3d23a8980adaeaa1a9798a4a6b0fba1f36eb52ad
CRs-Fixed: 2403829
Dustin Brown 6 年之前
父節點
當前提交
fd22167638
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dsc/test/wlan_dsc_test.c

+ 2 - 2
dsc/test/wlan_dsc_test.c

@@ -51,7 +51,7 @@ static struct dsc_psoc *nth_psoc(struct dsc_driver *driver, int n)
 		return psoc;
 	}
 
-	QDF_DEBUG_PANIC();
+	QDF_DEBUG_PANIC("Failed to find nth psoc: %d", n);
 
 	return NULL;
 }
@@ -72,7 +72,7 @@ static struct dsc_vdev *nth_vdev(struct dsc_psoc *psoc, int n)
 		return vdev;
 	}
 
-	QDF_DEBUG_PANIC();
+	QDF_DEBUG_PANIC("Failed to find nth vdev: %d", n);
 
 	return NULL;
 }