Displaying 7 results from an estimated 7 matches for "s_hardware".
2013 Sep 24
1
[PATCH 1/1] com32: hdt: fix memory leak
...-by: Felipe Pena <felipensp at gmail.com>
---
com32/hdt/hdt-cli.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index 7542da8..6c5baf1 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -779,6 +779,7 @@ void start_auto_mode(struct s_hardware *hardware)
}
mypch = strtok(NULL, AUTO_SEPARATOR);
}
+ free(temp);
/* Executing found commands */
for (int i = 1; i <= nb_commands; i++) {
--
1.7.10.4
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’
...nm[i].addr, nm[i].size, nm[i].addr + nm[i].size,
remove_spaces(type));
}
diff --git a/com32/hdt/hdt-dump-memory.c b/com32/hdt/hdt-dump-memory.c
index 5095d3c..4318376 100644
--- a/com32/hdt/hdt-dump-memory.c
+++ b/com32/hdt/hdt-dump-memory.c
@@ -91,9 +91,9 @@ void dump_e820(struct s_hardware *hardware, ZZJSON_CONFIG *config, ZZJSON **item
char begin[24]={0};
char size[24]={0};
char end[24]={0};
- snprintf(begin,sizeof(begin),"0x%016llx",map[i].addr);
- snprintf(size,sizeof(size),"0x%016llx",map[i].size);
- snprintf(end,sizeof(end),"0x%016llx",m...
2009 Apr 12
0
[PATCH] hdt: only display MAC address for network cards
...Sebastian
Index: 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))
-...
2009 Mar 22
2
[PATCH 1/3] pci: remove (void)cfgtype;
Remove "(void)cfgtype;" from com32/lib/pci/scan.c.
- Sebastian
Index: syslinux-3.74-pre11-2-g4fc8259/com32/lib/pci/scan.c
===================================================================
--- syslinux-3.74-pre11-2-g4fc8259.orig/com32/lib/pci/scan.c
+++ syslinux-3.74-pre11-2-g4fc8259/com32/lib/pci/scan.c
@@ -441,7 +441,6 @@ struct pci_domain *pci_scan(void)
int cfgtype;
2009 Mar 23
2
HDT: Doesn't work with syslinux
When I boot Hardware Detection Tool 0.2.3 or 0.2.5 with syslinux 3.73 or 3.74-pre11,
I get:
=======================================================
Hardware Detection Tool 0.2.5 by Erwan Velu
CPU: Detecting
DISKS: Detecting
DISK 0x80: 0x80: PCI ATA : sectors = 703282600, s/t = 63 head = 255: EDD=3.0
=======================================================
Then it halts. Ctrl + Alt + Del
2012 Jun 26
2
[GIT PULL] elflink bug fixes
...32 $(com32)/gpllib/libcom32gpl.c32
CFLAGS += -I$(com32)/cmenu/libmenu -I$(com32)
MODULES = hdt.c32
diff --git a/com32/hdt/hdt-common.c b/com32/hdt/hdt-common.c
index 8e9a9e6..f729a10 100644
--- a/com32/hdt/hdt-common.c
+++ b/com32/hdt/hdt-common.c
@@ -312,6 +312,7 @@ int detect_vesa(struct s_hardware *hardware)
struct vesa_mode_info *mi;
uint16_t mode, *mode_ptr;
char *oem_ptr;
+ int rv = -1;
if (hardware->vesa_detection == true)
return -1;
@@ -319,9 +320,13 @@ int detect_vesa(struct s_hardware *hardware)
hardware->vesa_detection = true;
hardware->i...
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 +++---