Skip to contentSkip to conversation

libxl: fix DEFINE_DEVICES_ADD related typo in comment

PATCH In review Olaf Hering 2 participants 3 messages May 6, 2014 – May 7, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxl: fix DEFINE_DEVICES_ADD related typo in comment

The macro DEFINE_DEVICES_ADD is called with "disk", not "disks".

---
 tools/libxl/libxl_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/libxl_device.c +1 -1
index 856e147..e7eab54 100644
@@ -521,7 +521,7 @@ void libxl__multidev_prepared(libxl__egc *egc,
  * This macro is added to prevent repetition of code.
  *
  * The following functions are defined:
- * libxl__add_disks
+ * libxl__add_disk
  * libxl__add_nics
  * libxl__add_vtpms
  */
#1 lore raw
Quoted 1 line · Olaf Hering

The macro DEFINE_DEVICES_ADD is called with "disk", not "disks".

... but the macro adds the trailing 's', so the comment is correct. Please drop this patch.

Olaf

#2 lore raw
Quoted 6 lines · Olaf Hering
Quoted 1 line · Olaf Hering

The macro DEFINE_DEVICES_ADD is called with "disk", not "disks".

... but the macro adds the trailing 's', so the comment is correct. Please drop this patch.

Done!