Skip to content

Commit

Permalink
Fixed: CLI show connections mem-problem
Browse files Browse the repository at this point in the history
  • Loading branch information
olofhagsand committed May 22, 2024
1 parent 4737675 commit 5c77850
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/controller_cli_callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1202,8 +1202,10 @@ cli_show_connections(clixon_handle h,
goto done;
}
width = cligen_terminal_width(cli_cligen(h));
logw = width - 58;
cligen_output(stdout, "%-23s %-10s %-22s %-*s\n", "Name", "State", "Time", width-58, "Logmsg");
logw = width - 59;
if (logw < 0)
logw = 1;
cligen_output(stdout, "%-23s %-10s %-22s %-*s\n", "Name", "State", "Time", logw, "Logmsg");
for (i=0; i<width; i++)
cligen_output(stdout, "=");
cligen_output(stdout, "\n");
Expand Down
2 changes: 1 addition & 1 deletion src/controller_device_handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ device_handle_yang_lib_get(device_handle dh)
* @param[in] xylib XML tree, is consumed
* @retval 0 OK
* On the form: yang-library/module-set/name=<name>/module/name,revision,namespace RFC 8525
* @note many uses is to get it and then modify it directly, ie not via set
* @see device_handle_yang_lib_append adds yangs
*/
int
device_handle_yang_lib_set(device_handle dh,
Expand Down

0 comments on commit 5c77850

Please sign in to comment.