DEVICENAME
#define DEVICENAME(d) ((d)? device_get_name(d): "no device")
#define DEVICENAME(d) /* nop */