mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 17:12:40 +03:00
[x86_64] Fix assorted 64-bit compilation errors and warnings
Remove various 32-bit assumptions scattered throughout the codebase. The code is still not necessarily 64-bit clean, but will at least compile.
This commit is contained in:
@@ -219,7 +219,7 @@ static int slam_put_value ( struct slam_request *slam,
|
||||
*/
|
||||
len = ( ( flsl ( value ) + 10 ) / 8 );
|
||||
if ( len >= iob_tailroom ( iobuf ) ) {
|
||||
DBGC2 ( slam, "SLAM %p cannot add %d-byte value\n",
|
||||
DBGC2 ( slam, "SLAM %p cannot add %zd-byte value\n",
|
||||
slam, len );
|
||||
return -ENOBUFS;
|
||||
}
|
||||
@@ -380,7 +380,7 @@ static int slam_pull_value ( struct slam_request *slam,
|
||||
len = ( *data >> 5 );
|
||||
if ( ( len == 0 ) ||
|
||||
( value && ( len > sizeof ( *value ) ) ) ) {
|
||||
DBGC ( slam, "SLAM %p invalid value length %d bytes\n",
|
||||
DBGC ( slam, "SLAM %p invalid value length %zd bytes\n",
|
||||
slam, len );
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user