qcacmn: Avoid QDF_BUG logs when panic is disabled

QDF_BUG panics the system when an assertion fails and PANIC_ON_BUG is
enabled in the build config. It also prints an error message regardless
of if PANIC_ON_BUG is enabled or not. However, these prints are not of
much value when situations where PANIC_ON_BUG is disabled. When
PANIC_ON_BUG is disabled, avoid printing any logs.

Change-Id: I456ebce4d45d533d512402cd37d22e4ba1ae2cde
CRs-Fixed: 2211960
1 file changed