summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Fehrenbacher <rf@q-leap.de>2015-12-07 12:11:46 +0000
committerRoland Fehrenbacher <rf@q-leap.de>2015-12-07 12:11:46 +0000
commit28489fd4ca1672fe84fa4c471bf6fb9d2a30a853 (patch)
tree81d3ff003a3737322618d7acad60f51a8eaf9cc9
parent05f6f14d54d62434192207bd1b55baf457dce997 (diff)
QL: Prevent format errors when compiling with -Wformat -Werror=format-security
-rw-r--r--psm_context.c2
-rw-r--r--psm_ep_connect.c2
-rw-r--r--psm_utils.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/psm_context.c b/psm_context.c
index 235bd1b..2728fab 100644
--- a/psm_context.c
+++ b/psm_context.c
@@ -381,7 +381,7 @@ psmi_context_check_status(const psmi_context_t *contexti)
else
errmsg = "Hardware not found";
- psmi_handle_error(context->ep, err, errmsg);
+ psmi_handle_error(context->ep, err, errmsg, "%s");
}
}
}
diff --git a/psm_ep_connect.c b/psm_ep_connect.c
index 4e5b0a9..98294e2 100644
--- a/psm_ep_connect.c
+++ b/psm_ep_connect.c
@@ -275,7 +275,7 @@ connect_fail:
}
}
errbuf[sizeof errbuf - 1] = '\0';
- err = psmi_handle_error(ep, err, errbuf);
+ err = psmi_handle_error(ep, err, errbuf, "%s");
}
fail:
diff --git a/psm_utils.c b/psm_utils.c
index 895e7b5..c8651fe 100644
--- a/psm_utils.c
+++ b/psm_utils.c
@@ -1202,7 +1202,7 @@ psmi_coreopt_ctl(const void *core_obj, int optname,
fail:
/* Unrecognized/unknown option */
- return psmi_handle_error(NULL, PSM_PARAM_ERR, err_string);
+ return psmi_handle_error(NULL, PSM_PARAM_ERR, err_string, "%s");
}
psm_error_t psmi_core_setopt(const void *core_obj, int optname,