if (!hwe->vendor)
return 0;
- return snprintf(buff, len, "%s", hwe->vendor);
+ return snprintf(buff, len, "\"%s\"", hwe->vendor);
}
static int
if (!hwe->product)
return 0;
- return snprintf(buff, len, "%s", hwe->product);
+ return snprintf(buff, len, "\"%s\"", hwe->product);
}
static int
if (!hwe->bl_product)
return 0;
- return snprintf(buff, len, "%s", hwe->bl_product);
+ return snprintf(buff, len, "\"%s\"", hwe->bl_product);
}
static int
!strcmp(hwe->getuid, conf->getuid))
return 0;
- return snprintf(buff, len, "%s", hwe->getuid);
+ return snprintf(buff, len, "\"%s\"", hwe->getuid);
}
static int
!strcmp(hwe->features, conf->features))
return 0;
- return snprintf(buff, len, "%s", hwe->features);
+ return snprintf(buff, len, "\"%s\"", hwe->features);
}
static int
!strcmp(hwe->hwhandler, conf->hwhandler))
return 0;
- return snprintf(buff, len, "%s", hwe->hwhandler);
+ return snprintf(buff, len, "\"%s\"", hwe->hwhandler);
}
static int
!strcmp(conf->udev_dir, DEFAULT_UDEVDIR))
return 0;
- return snprintf(buff, len, "%s", conf->udev_dir);
+ return snprintf(buff, len, "\"%s\"", conf->udev_dir);
}
static int
!strcmp(conf->multipath_dir, DEFAULT_MULTIPATHDIR))
return 0;
- return snprintf(buff, len, "%s", conf->multipath_dir);
+ return snprintf(buff, len, "\"%s\"", conf->multipath_dir);
}
static int
!strcmp(conf->getuid, DEFAULT_GETUID))
return 0;
- return snprintf(buff, len, "%s", conf->getuid);
+ return snprintf(buff, len, "\"%s\"", conf->getuid);
}
static int
!strcmp(conf->features, DEFAULT_FEATURES))
return 0;
- return snprintf(buff, len, "%s", conf->features);
+ return snprintf(buff, len, "\"%s\"", conf->features);
}
static int
{
struct blentry * ble = (struct blentry *)data;
- return snprintf(buff, len, "%s", ble->str);
+ return snprintf(buff, len, "\"%s\"", ble->str);
}
static int
{
struct blentry_device * bled = (struct blentry_device *)data;
- return snprintf(buff, len, "%s", bled->vendor);
+ return snprintf(buff, len, "\"%s\"", bled->vendor);
}
static int
{
struct blentry_device * bled = (struct blentry_device *)data;
- return snprintf(buff, len, "%s", bled->product);
+ return snprintf(buff, len, "\"%s\"", bled->product);
}
#define __deprecated