Displaying 5 results from an estimated 5 matches for "more_printf".
2010 Jun 18
2
[PATCH] hdt & gcc -Werror
From: Gene Cumm <gene.cumm at gmail.com>
Fix several calls to more_printf() as eventually printf() is called
without a literal string which generate warnings with gcc and lead to
errors when -Werror is active.
Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
The message "format not a string literal and no format arguments" at
first seems strange but by...
2014 Nov 22
1
Get rid of printf format warning format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’
...try[x->entry_count] = pointed_address;
diff --git a/com32/hdt/hdt-cli-memory.c b/com32/hdt/hdt-cli-memory.c
index c05b7cd..7d0342c 100644
--- a/com32/hdt/hdt-cli-memory.c
+++ b/com32/hdt/hdt-cli-memory.c
@@ -47,7 +47,7 @@ static void show_memory_e820(int argc __unused, char **argv __unused,
more_printf("BIOS-provided physical RAM e820 map:\n");
for (int i = 0; i < count; i++) {
get_type(map[i].type, type, 14);
- more_printf("%016llx - %016llx %016llx (%s)\n",
+ more_printf("%016" PRIx64 " - %016" PRIx64 " %016" PRIx64 " (%s)\n"...
2009 Apr 12
0
[PATCH] hdt: only display MAC address for network cards
...x: syslinux-3.74-20-g3b80c26/com32/hdt/hdt-cli-pci.c
===================================================================
--- syslinux-3.74-20-g3b80c26.orig/com32/hdt/hdt-cli-pci.c
+++ syslinux-3.74-20-g3b80c26/com32/hdt/hdt-cli-pci.c
@@ -119,11 +119,11 @@ void show_pci_device(struct s_hardware *
more_printf("PCI Func : %02d\n", func);
if (hardware->is_pxe_valid == true) {
- more_printf("Mac Address : %s\n", hardware->pxe.mac_addr);
if ((hardware->pxe.pci_device != NULL)
- && (hardware->pxe.pci_device == pci_device))
- more_printf(...
2015 Feb 10
0
[PATCH 4/6] hdt: fix sizeof(char *) misuse
...*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, char *flag_name, bool flush)
snprintf(output_buffer, sizeof output_buffer, "Flags : %s\n",
buffer);
more_printf("%s", output_buffer);
- memset(buffer, 0, sizeof(buffer));
+ memset(buffer, 0, len);
if (flush)
return;
}
@@ -158,95 +158,95 @@ static void show_cpu(int argc __unused, char **argv __unused,
/* Let's display the supported cpu flags */
memset(buffer, 0, sizeof(b...
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 +++---