API change for lttng_get_readeable_code
[lttng-tools.git] / liblttngctl / lttngctl.c
index 0442a4f02bdbc686a868bf1abbc40a1896420894..90977f8c3caa19190601089a0657b51ba0d0195c 100644 (file)
@@ -541,7 +541,7 @@ int lttng_disable_event(struct lttng_handle *handle, const char *name,
 
        copy_lttng_domain(&lsm.domain, &handle->domain);
 
-       if (name == NULL) {
+       if (name != NULL) {
                copy_string(lsm.u.disable.name, name, sizeof(lsm.u.disable.name));
                lsm.cmd_type = LTTNG_DISABLE_EVENT;
        } else {
@@ -636,7 +636,7 @@ int lttng_list_tracepoints(struct lttng_handle *handle,
 /*
  *  Return a human readable string of code
  */
-const char *lttng_get_readable_code(int code)
+const char *lttng_strerror(int code)
 {
        if (code > -LTTCOMM_OK) {
                return "Ended with errors";
This page took 0.022791 seconds and 4 git commands to generate.