From b1c6701f012eba83ab7ca45b0188550c90c786fd Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Tue, 18 Sep 2018 20:59:41 -0400 Subject: [PATCH] px4io driver use common error string --- src/drivers/px4io/px4io.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index 7cd7771be5..8adfab22f4 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -2962,7 +2962,7 @@ start(int argc, char *argv[]) if (g_dev == nullptr) { delete interface; - errx(1, "driver alloc failed"); + errx(1, "driver allocation failed"); } bool rc_handling_disabled = false; @@ -3001,7 +3001,7 @@ detect(int argc, char *argv[]) (void)new PX4IO(interface); if (g_dev == nullptr) { - errx(1, "driver alloc failed"); + errx(1, "driver allocation failed"); } int ret = g_dev->detect(); @@ -3031,7 +3031,7 @@ checkcrc(int argc, char *argv[]) (void)new PX4IO(interface); if (g_dev == nullptr) { - errx(1, "driver alloc failed"); + errx(1, "driver allocation failed"); } } else { @@ -3455,7 +3455,7 @@ px4io_main(int argc, char *argv[]) if (g_dev == nullptr) { delete interface; - errx(1, "driver alloc failed"); + errx(1, "driver allocation failed"); } }