From: Aurelien Jacobs Date: Mon, 1 Feb 2016 21:37:36 +0000 (+0100) Subject: beaglelogic: use standard # operator instead of ugly __STRING macro X-Git-Tag: libsigrok-0.5.0~567 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=83bf4762e42a4d4a5c077f48d8f5715c9147d9b8;p=libsigrok.git 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 9015c610..96713ba7 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 */