Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145592426
D19745.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
808 B
Referenced Files
None
Subscribers
None
D19745.diff
View Options
Index: head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
===================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
+++ head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
@@ -66,8 +66,17 @@
#define NUM_DMA_SEGS 2
#ifdef DEBUG
-#define dprintf(fmt, args...) do { printf("%s(): ", __func__); \
- printf(fmt,##args); } while (0)
+static int bcm2835_sdhci_debug = 0;
+
+TUNABLE_INT("hw.bcm2835.sdhci.debug", &bcm2835_sdhci_debug);
+SYSCTL_INT(_hw_sdhci, OID_AUTO, bcm2835_sdhci_debug, CTLFLAG_RWTUN,
+ &bcm2835_sdhci_debug, 0, "bcm2835 SDHCI debug level");
+
+#define dprintf(fmt, args...) \
+ do { \
+ if (bcm2835_sdhci_debug) \
+ printf("%s: " fmt, __func__, ##args); \
+ } while (0)
#else
#define dprintf(fmt, args...)
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 22, 10:27 PM (4 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28944996
Default Alt Text
D19745.diff (808 B)
Attached To
Mode
D19745: Improve debugging options in bcm2835_sdhci.c
Attached
Detach File
Event Timeline
Log In to Comment