Project

General

Profile

Bug #9783

loader: linux.c: format '%x' expects argument of type 'unsigned int'

Added by Toomas Soome over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
2018-09-02
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

With warnings enabled:

    linux.c: In function 'linux_loadkernel':
    linux.c:199:33: error: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Werror=format=]
      printf("   [Linux-%s, setup=0x%x, size=0x%x]\n",
                                    ~^
                                    %lx
    linux.c:199:44: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
      printf("   [Linux-%s, setup=0x%x, size=0x%x]\n",
                                               ~^
                                               %lx

#1

Updated by Electric Monk over 2 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit b075503f221374dd0495c40e8811d229cb9fdc74

commit  b075503f221374dd0495c40e8811d229cb9fdc74
Author: Toomas Soome <tsoome@me.com>
Date:   2018-09-06T16:52:46.000Z

    9783 loader: linux.c: format '%x' expects argument of type 'unsigned int'
    Reviewed by: C Fraire <cfraire@me.com>
    Reviewed by: Igor Kozhukhov <igor@dilos.org>
    Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF