From: Francis Deslauriers Date: Thu, 11 Mar 2021 16:06:53 +0000 (-0500) Subject: Fix: sessiond: return _OK on _SET_SESSION_SHM_PATH command success X-Git-Tag: v2.13.0-rc1~246 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=7e397c55fae384e3218be22e13996d7989611f25;hp=7e397c55fae384e3218be22e13996d7989611f25 Fix: sessiond: return _OK on _SET_SESSION_SHM_PATH command success Issue ===== When running the `test_crash` tests, I witness the following warning: Warning: Command returned an invalid status code, returning unknown error: command type = 40, ret = 0 The `cmd_set_session_shm_path()` function is returning 0 on success instead of the expected LTTNG_OK which leads to this warning being printed. Fix === Return LTTNG_OK. Side note ========= I added the string version of the command name in the warning printing for easier debugging. Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau Change-Id: I79fe41afd49a1c701e760e415b72aabdc9b25f6c ---