mirror of https://github.com/ipxe/ipxe.git
[settings] Extend numerical setting tags to "unsigned long"
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/54/head^2
parent
6d2bdc4ea3
commit
56c0147deb
|
@ -145,7 +145,7 @@ static int memmap_settings_fetch ( struct settings *settings,
|
|||
unsigned int i;
|
||||
unsigned int count;
|
||||
|
||||
DBGC ( settings, "MEMMAP start %d count %d %s%s%s%s scale %d\n",
|
||||
DBGC ( settings, "MEMMAP start %ld count %ld %s%s%s%s scale %ld\n",
|
||||
MEMMAP_START ( setting->tag ), MEMMAP_COUNT ( setting->tag ),
|
||||
( MEMMAP_INCLUDE_START ( setting->tag ) ? "start" : "" ),
|
||||
( ( MEMMAP_INCLUDE_START ( setting->tag ) &&
|
||||
|
|
|
@ -1474,9 +1474,9 @@ struct setting * find_setting ( const char *name ) {
|
|||
* @v name Name
|
||||
* @ret tag Tag number, or 0 if not a valid number
|
||||
*/
|
||||
static unsigned int parse_setting_tag ( const char *name ) {
|
||||
static unsigned long parse_setting_tag ( const char *name ) {
|
||||
char *tmp = ( ( char * ) name );
|
||||
unsigned int tag = 0;
|
||||
unsigned long tag = 0;
|
||||
|
||||
while ( 1 ) {
|
||||
tag = ( ( tag << 8 ) | strtoul ( tmp, &tmp, 0 ) );
|
||||
|
|
|
@ -40,7 +40,7 @@ struct setting {
|
|||
* (such as a DHCP option number, or an SMBIOS structure and
|
||||
* field number).
|
||||
*/
|
||||
unsigned int tag;
|
||||
unsigned long tag;
|
||||
/** Setting scope (or NULL)
|
||||
*
|
||||
* For historic reasons, a NULL scope with a non-zero tag
|
||||
|
|
Loading…
Reference in New Issue