mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 10:14:55 +00:00
Replace %L with %ll in format strings.
%L is, in some standard libraries like U-Boot's, a synonym for %ll which is for long long integers, required by the C99 standard to be at least 64 bits. For practical purposes that basically means %ll should be used with 64 bit values. Since %L seems to be non-standard and, at least in U-Boot's case, %ll is recognized in the same way, %ll seems preferable. BUG=chrome-os-partner:8339 TEST=Booted ChromeOS using depthcharge and U-Boot. Booted with depthcharge/libpayload which does not support %L and saw a number where %L had been printed. BRANCH=None Change-Id: Id51fb5c9295e0dd65b42a5c0738eb34c8210a2b2 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/32660 Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
@@ -74,7 +74,7 @@ uint32_t VbTryLoadKernel(VbCommonParams* cparams, LoadKernelParams* p,
|
|||||||
if (512 != disk_info[i].bytes_per_lba || /* cgptlib restriction */
|
if (512 != disk_info[i].bytes_per_lba || /* cgptlib restriction */
|
||||||
32 > disk_info[i].lba_count || /* ditto */
|
32 > disk_info[i].lba_count || /* ditto */
|
||||||
get_info_flags != disk_info[i].flags) { /* got only what we asked for */
|
get_info_flags != disk_info[i].flags) { /* got only what we asked for */
|
||||||
VBDEBUG((" skipping: bytes_per_lba=%Ld lba_count=%Ld flags=0x%x\n",
|
VBDEBUG((" skipping: bytes_per_lba=%lld lba_count=%lld flags=0x%x\n",
|
||||||
disk_info[i].bytes_per_lba, disk_info[i].lba_count,
|
disk_info[i].bytes_per_lba, disk_info[i].lba_count,
|
||||||
disk_info[i].flags));
|
disk_info[i].flags));
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ VbAudioContext* VbAudioOpen(VbCommonParams* cparams) {
|
|||||||
VbExSleepMs(10);
|
VbExSleepMs(10);
|
||||||
b = VbExGetTimer();
|
b = VbExGetTimer();
|
||||||
ticks_per_msec = (b - a) / 10ULL ;
|
ticks_per_msec = (b - a) / 10ULL ;
|
||||||
VBDEBUG(("VbAudioOpen() - ticks_per_msec is %Lu\n", ticks_per_msec));
|
VBDEBUG(("VbAudioOpen() - ticks_per_msec is %llu\n", ticks_per_msec));
|
||||||
|
|
||||||
/* Initialize */
|
/* Initialize */
|
||||||
Memset(audio, 0, sizeof(*audio));
|
Memset(audio, 0, sizeof(*audio));
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ VbError_t VbExDiskGetInfo(VbDiskInfo** infos_ptr, uint32_t* count,
|
|||||||
mock_disks[num_disks].flags = t->disks_to_provide[i].flags;
|
mock_disks[num_disks].flags = t->disks_to_provide[i].flags;
|
||||||
mock_disks[num_disks].handle =
|
mock_disks[num_disks].handle =
|
||||||
(VbExDiskHandle_t)t->disks_to_provide[i].diskname;
|
(VbExDiskHandle_t)t->disks_to_provide[i].diskname;
|
||||||
VBDEBUG((" mock_disk[%d] %Ld %Ld 0x%x %s\n", i,
|
VBDEBUG((" mock_disk[%d] %lld %lld 0x%x %s\n", i,
|
||||||
mock_disks[num_disks].bytes_per_lba,
|
mock_disks[num_disks].bytes_per_lba,
|
||||||
mock_disks[num_disks].lba_count,
|
mock_disks[num_disks].lba_count,
|
||||||
mock_disks[num_disks].flags,
|
mock_disks[num_disks].flags,
|
||||||
@@ -253,7 +253,7 @@ VbError_t VbExDiskGetInfo(VbDiskInfo** infos_ptr, uint32_t* count,
|
|||||||
else
|
else
|
||||||
*count = num_disks;
|
*count = num_disks;
|
||||||
|
|
||||||
VBDEBUG((" *count=%Ld\n", *count));
|
VBDEBUG((" *count=%lld\n", *count));
|
||||||
VBDEBUG((" return 0x%x\n", t->diskgetinfo_return_val));
|
VBDEBUG((" return 0x%x\n", t->diskgetinfo_return_val));
|
||||||
|
|
||||||
return t->diskgetinfo_return_val;
|
return t->diskgetinfo_return_val;
|
||||||
|
|||||||
Reference in New Issue
Block a user