On Sat, Jan 30, 2016 at 08:11:54PM +0100, Bernd Kuhls wrote:
> This patch fixes a build error seen on the buildroot project:
> http://autobuild.buildroot.net/results/afc/afcea2068d5b0ba707aa90339401550602103ca7/
> 
> [...]

Here is a better fix.

Aurel
commit 6c8761808b323eb68f7e80e97f6adecc22033073
Author: Aurelien Jacobs <au...@gnuage.org>
Date:   Mon Feb 1 22:37:36 2016 +0100

    beaglelogic: use standard # operator instead of ugly __STRING macro
    
    Also note that the __ namespace is reserved by POSIX for its private
    usage, so user land software should never rely on any kind of API
    with a __ prefix.

diff --git a/src/hardware/beaglelogic/beaglelogic.h b/src/hardware/beaglelogic/beaglelogic.h
index 9015c61..96713ba 100644
--- a/src/hardware/beaglelogic/beaglelogic.h
+++ b/src/hardware/beaglelogic/beaglelogic.h
@@ -30,8 +30,7 @@
 
 /* BeagleLogic device node name */
 #define BEAGLELOGIC_DEV_NODE        "/dev/beaglelogic"
-#define BEAGLELOGIC_SYSFS_ATTR(a)   "/sys/devices/virtual/misc/beaglelogic/"\
-					__STRING(a)
+#define BEAGLELOGIC_SYSFS_ATTR(a)   "/sys/devices/virtual/misc/beaglelogic/" #a
 
 /* Reproduced verbatim from beaglelogic.h in the kernel tree until the kernel
  * module hits the mainline. Contains the ABI, so DO NOT TOUCH this section */
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to