Fix errors on 32 bit
print format and signed conversion due to big hex types Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
5aeb513916
commit
e3f7d27541
2 changed files with 5 additions and 3 deletions
|
@ -54,9 +54,11 @@
|
||||||
#include "fileio.h"
|
#include "fileio.h"
|
||||||
#include "efivars.h"
|
#include "efivars.h"
|
||||||
|
|
||||||
|
static struct statfs statfstype;
|
||||||
|
|
||||||
#define EFIVARS_MOUNTPOINT "/sys/firmware/efi/efivars"
|
#define EFIVARS_MOUNTPOINT "/sys/firmware/efi/efivars"
|
||||||
#define PSTORE_FSTYPE 0x6165676C
|
#define PSTORE_FSTYPE ((typeof(statfstype.f_type))0x6165676C)
|
||||||
#define EFIVARS_FSTYPE 0xde5e81e4
|
#define EFIVARS_FSTYPE ((typeof(statfstype.f_type))0xde5e81e4)
|
||||||
|
|
||||||
#define EFI_IMAGE_SECURITY_DATABASE_GUID \
|
#define EFI_IMAGE_SECURITY_DATABASE_GUID \
|
||||||
{ 0xd719b2cb, 0x3d3a, 0x4596, \
|
{ 0xd719b2cb, 0x3d3a, 0x4596, \
|
||||||
|
|
|
@ -332,7 +332,7 @@ int write_signed(struct varsign_context *ctx, int include_attrs)
|
||||||
printf("Wrote signed data:\n");
|
printf("Wrote signed data:\n");
|
||||||
if (include_attrs) {
|
if (include_attrs) {
|
||||||
i = sizeof(ctx->var_attrs);
|
i = sizeof(ctx->var_attrs);
|
||||||
printf(" [%04zx:%04zx] attrs\n", 0l, i);
|
printf(" [%04lx:%04zx] attrs\n", 0l, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf(" [%04zx:%04x] authentication descriptor\n",
|
printf(" [%04zx:%04x] authentication descriptor\n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue