3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

client: Fix two format strings

This commit is contained in:
Andrew Zaborowski 2018-11-01 07:03:38 +01:00 committed by Denis Kenzior
parent fe034229eb
commit 558341a689
2 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ bool agent_manager_unregister_agent(void)
static void *agent_manager_create(void)
{
char *path = l_strdup_printf("/agent/%lu", getpid());
char *path = l_strdup_printf("/agent/%i", getpid());
agent_init(path);

View File

@ -322,14 +322,14 @@ void display_table_footer(void)
void display_command_line(const char *command_family,
const struct command *cmd)
{
char *cmd_line = l_strdup_printf("%s%s%s%s%s %s",
char *cmd_line = l_strdup_printf("%s%s%s%s%s%s%s",
command_family ? : "",
command_family ? " " : "",
cmd->entity ? : "",
cmd->entity ? " " : "",
cmd->cmd,
cmd->arg ? : "",
cmd->arg ? " " : "");
cmd->arg ? " " : "",
cmd->arg ? : "");
display(MARGIN "%-*s%s\n", 50, cmd_line, cmd->desc ? : "");