Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Adélie Package Tree Adélie Package Tree
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 354
    • Issues 354
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 21
    • Merge requests 21
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Adélie Linux
  • Adélie Package TreeAdélie Package Tree
  • Issues
  • #228

Closed
Open
Created Dec 23, 2019 by Emily@emily🤖

system/kmod: invalid printf format strings in depmod

Bugzilla ID 228
Reporter A. Wilcox (awilfox)
Assignee A. Wilcox (awilfox)
Reported 2019-12-22 22:07:55 -0600
Modified 2019-12-22 22:07:55 -0600
Status CONFIRMED
Version 1.0-BETA4
Hardware Adélie Linux / All
Importance --- / normal

Description

tools/depmod.c: In function ‘depmod_output’:
tools/depmod.c:2449:40: warning: format ‘%li’ expects argument of type ‘long int’, but argument 6 has type ‘suseconds_t’ {aka ‘long long int’} [-Wformat=]
snprintf(tmp, sizeof(tmp), "%s.%i.%li.%li", itr->name, getpid(),
~~^
%lli
tv.tv_usec, tv.tv_sec);
~~~~~~~~~~
tools/depmod.c:2449:44: warning: format ‘%li’ expects argument of type ‘long int’, but argument 7 has type ‘time_t’ {aka ‘long long int’} [-Wformat=]
snprintf(tmp, sizeof(tmp), "%s.%i.%li.%li", itr->name, getpid(),
~~^
%lli
tv.tv_usec, tv.tv_sec);
~~~~~~~~~

Assignee
Assign to
Time tracking