fix: build failure on ppc64el with '-Werror=format-overflow='
[babeltrace.git] / src / lib / plugin / plugin-so.c
index 3684acaedd930fa5b3948a375cb54d1c3067b6b2..be4fc428b2147ee78d7ad55a398187a384240c0a 100644 (file)
@@ -171,7 +171,7 @@ int bt_plugin_so_shared_lib_handle_create(
        int status = BT_FUNC_STATUS_OK;
 
        BT_ASSERT(shared_lib_handle);
-       BT_LOGI("Creating shared library handle: path=\"%s\"", path);
+       BT_LOGI("Creating shared library handle: path=\"%s\"", path ? path : "(null)");
        *shared_lib_handle = g_new0(struct bt_plugin_so_shared_lib_handle, 1);
        if (!*shared_lib_handle) {
                BT_LIB_LOGE_APPEND_CAUSE("Failed to allocate one shared library handle.");
@@ -215,7 +215,7 @@ end:
        BT_ASSERT(*shared_lib_handle || status != BT_FUNC_STATUS_OK);
        if (*shared_lib_handle) {
                BT_LOGI("Created shared library handle: path=\"%s\", addr=%p",
-                       path, *shared_lib_handle);
+                       path ? path : "(null)", *shared_lib_handle);
        }
 
        return status;
This page took 0.023533 seconds and 4 git commands to generate.