projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix list field: handle error
[lttng-ust.git]
/
liblttng-ust-ctl
/
ustctl.c
diff --git
a/liblttng-ust-ctl/ustctl.c
b/liblttng-ust-ctl/ustctl.c
index b0b5b6cc94f2997c61def90e6e30b804295abaaf..9789413f2a4ce8c1b3737e4a43157a2a1aa68b8b 100644
(file)
--- a/
liblttng-ust-ctl/ustctl.c
+++ b/
liblttng-ust-ctl/ustctl.c
@@
-520,6
+520,10
@@
int ustctl_tracepoint_field_list_get(int sock, int tp_field_list_handle,
ret = ustcomm_send_app_cmd(sock, &lum, &lur);
if (ret)
return ret;
ret = ustcomm_send_app_cmd(sock, &lum, &lur);
if (ret)
return ret;
+ if (lur.ret_code != USTCOMM_OK) {
+ DBG("Return code: %s", ustcomm_get_readable_code(lur.ret_code));
+ return -EINVAL;
+ }
len = ustcomm_recv_unix_sock(sock, iter, sizeof(*iter));
if (len != sizeof(*iter)) {
return -EINVAL;
len = ustcomm_recv_unix_sock(sock, iter, sizeof(*iter));
if (len != sizeof(*iter)) {
return -EINVAL;
This page took
0.022291 seconds
and
4
git commands to generate.