mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 04:32:37 +01:00
client: apply format attribute to two functions
Clang was able to find these extra ones.
This commit is contained in:
parent
36f962a4f0
commit
2acda158ef
@ -303,7 +303,7 @@ static struct l_dbus_message *request_user_password_method_call(
|
||||
|
||||
username_prompt = l_strdup_printf(COLOR_BLUE PROMPT_USERNAME " "
|
||||
COLOR_OFF "%s\n", username);
|
||||
display(username_prompt);
|
||||
display("%s", username_prompt);
|
||||
l_free(username_prompt);
|
||||
|
||||
display_agent_prompt(PROMPT_PASSWORD, true);
|
||||
|
@ -32,8 +32,10 @@ struct command_family;
|
||||
#define CLEAR_SCREEN "\033[2J"
|
||||
#define MARGIN " "
|
||||
|
||||
void display(const char *format, ...);
|
||||
void display_table_header(const char *caption, const char *fmt, ...);
|
||||
void display(const char *format, ...)
|
||||
__attribute__((format(printf, 1, 2)));
|
||||
void display_table_header(const char *caption, const char *fmt, ...)
|
||||
__attribute__((format(printf, 2, 3)));
|
||||
void display_table_footer(void);
|
||||
void display_error(const char *error);
|
||||
void display_command_line(const char *command_family,
|
||||
|
Loading…
Reference in New Issue
Block a user