Displaying 2 results from an estimated 2 matches for "mode_file".
Did you mean:
code_file
2014 Nov 22
3
Use z size specifier for printf-ing size_t variable
...mbios(struct upload_backend *be, size_t dptr)
struct smbios_header smx = *smb;
char filename[32];
- snprintf(filename, sizeof filename, "dmi/%05x.%08x",
+ snprintf(filename, sizeof filename, "dmi/%05zx.%08x",
dptr, smb->dmi.tbladdr);
cpio_hdr(be, MODE_FILE, smb->dmi.tbllen + 32, filename);
@@ -90,7 +90,7 @@ static void dump_old_dmi(struct upload_backend *be, size_t dptr)
} fake;
char filename[32];
- snprintf(filename, sizeof filename, "dmi/%05x.%08x",
+ snprintf(filename, sizeof filename, "dmi/%05zx.%08x",...
2015 Jan 25
0
Use z size specifier for printf-ing size_t variable
...dptr)
> struct smbios_header smx = *smb;
> char filename[32];
>
> - snprintf(filename, sizeof filename, "dmi/%05x.%08x",
> + snprintf(filename, sizeof filename, "dmi/%05zx.%08x",
> dptr, smb->dmi.tbladdr);
> cpio_hdr(be, MODE_FILE, smb->dmi.tbllen + 32, filename);
>
> @@ -90,7 +90,7 @@ static void dump_old_dmi(struct upload_backend *be, size_t dptr)
> } fake;
> char filename[32];
>
> - snprintf(filename, sizeof filename, "dmi/%05x.%08x",
> + snprintf(filename, sizeof filename...