Displaying 3 results from an estimated 3 matches for "show_flag".
2015 Feb 10
0
[PATCH 4/6] hdt: fix sizeof(char *) misuse
...dt/hdt-cli-cpu.c
index 6d764ce..660a90b 100644
--- a/com32/hdt/hdt-cli-cpu.c
+++ b/com32/hdt/hdt-cli-cpu.c
@@ -74,7 +74,7 @@ void main_show_cpu(int argc __unused, char **argv __unused,
/* Let's compute the cpu flags display
* We have to maximize the number of flags per line */
-static void show_flag(char *buffer, bool flag, char *flag_name, bool flush)
+static void show_flag(char *buffer, size_t len, bool flag, char *flag_name, bool flush)
{
char output_buffer[81];
/* Flush is only set when no more flags are present
@@ -86,7 +86,7 @@ static void show_flag(char *buffer, bool flag, ch...
2015 Feb 10
6
[PATCH 0/6] fix some compiler warnings
These patches fix a few compiler warnings.
Tested on top of commit aee0dc5565711ef5be7c30fb5fc1c5f3f98db09f
Jonathan Boeing (6):
Use z width specifier when printing size_t variable
pxe: fix truncation warning
gpllib: fix sizeof(char *) misuse
hdt: fix sizeof(char *) misuse
hdt: fix sizeof(char *) misuse
hdt: fix sizeof(char *) misuse
com32/gpllib/dmi/dmi.c | 24 +++---
2010 Jun 18
2
[PATCH] hdt & gcc -Werror
...ithout attempting to
re-interpret for another argument (just in case there's a '%' in the
string).
---
diff --git a/com32/hdt/hdt-cli-cpu.c b/com32/hdt/hdt-cli-cpu.c
index aa7ec8f..1695ccd 100644
--- a/com32/hdt/hdt-cli-cpu.c
+++ b/com32/hdt/hdt-cli-cpu.c
@@ -67,7 +67,7 @@ static void show_flag(char *buffer, bool flag, char
*flag_name, bool flush)
if ((((strlen(buffer) + strlen(flag_name)) > 66) && flag) || flush) {
snprintf(output_buffer, sizeof output_buffer, "Flags : %s\n",
buffer);
- more_printf(output_buffer);
+ more_printf("%s", output_b...