Fix segfault in ode-admin-cli 56/161956/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 28 Nov 2017 09:11:31 +0000 (10:11 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 28 Nov 2017 09:20:52 +0000 (10:20 +0100)
Change-Id: I67f3037dacc19e8582bf6277088e73b767c58dfc

tools/cli/ode-admin-cli.cpp

index 8227d2b..3a0a77c 100644 (file)
@@ -284,7 +284,7 @@ public:
 
                int ret = ode_luks_set_event_cb(&LuksWrapper::StaticCallback, this);
                if (ret != ODE_ERROR_NONE)
-                       throw std::runtime_error("Callback setting failed " + ret);
+                       throw std::runtime_error("Callback setting failed " + std::to_string(ret));
        }
 
        int format(const std::string& device)