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:
parent
fe034229eb
commit
558341a689
@ -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);
|
||||
|
||||
|
@ -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 ? : "");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user