• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

drakenclimber / libcgroup
59%
main: 56%

Build:
Build:
LAST BUILD BRANCH: alert-autofix-11
DEFAULT BRANCH: main
Repo Added 19 Nov 2020 06:53PM UTC
Files 39
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fixwarning
branch: fixwarning
CHANGE BRANCH
x
Reset
  • fixwarning
  • 066
  • 3pl
  • add-cgx-man-pages
  • alert-autofix-11
  • allow-space-cgrules
  • cgall2
  • cgcompare
  • cgcompare2
  • cgconfigscript
  • cgcreate
  • cgroup-controller
  • cgroup-controller-v2
  • cgroup-controller-v3
  • cgsos
  • cgsos2
  • cgsos3
  • clang
  • cleanup-subtree
  • codeql
  • consts-rework
  • coverity
  • dependabot
  • dist-subdirs-2.0
  • distro
  • doc
  • extra-logging
  • fix-005
  • fix-cgxset
  • fix-rel2.0
  • fix008
  • fixspaces
  • fixwarnings
  • foo
  • ftest-lock
  • get_next_rule_field
  • getprocs
  • getprocs2
  • github
  • github-workflow-ci
  • issues/21
  • issues/38
  • issues/61
  • issues/62
  • issues/66
  • issues/71
  • issues/71v2
  • issues/73
  • issues/advanced-cgget
  • issues/betterlogs
  • issues/cgclear
  • issues/cgclear2
  • issues/cgconfig-tests
  • issues/cgconfigparser
  • issues/cgexec-test
  • issues/cgget-refactor
  • issues/cgget-refactor2
  • issues/cgget-tests
  • issues/cgrules
  • issues/cgrules2
  • issues/cgrules3
  • issues/cgrules4
  • issues/cgset-tests
  • issues/cgsnapshot
  • issues/cgsnapshot2
  • issues/cgv2-tests
  • issues/cgxget
  • issues/cgxget3
  • issues/cgxget4
  • issues/cgxget5
  • issues/cgxget5-pybindings
  • issues/cgxget5-pybindings3
  • issues/cgxget5-pybindings4
  • issues/cgxget5-pybindings5
  • issues/cgxget5-pybindings6
  • issues/cgxget5-toolslib
  • issues/codecovrel2.0
  • issues/codeql
  • issues/contributing
  • issues/coveralls_badge
  • issues/daemoncodecov
  • issues/delete-cgclear
  • issues/delete-legacy
  • issues/distcheck
  • issues/doxygen
  • issues/doxygen_badge
  • issues/emptycg
  • issues/emptycgcreate
  • issues/finalize
  • issues/fix-warnings
  • issues/fixcgset
  • issues/fixme
  • issues/fixmerge
  • issues/fixtest004
  • issues/fixwarnings
  • issues/ftests_cgv2
  • issues/github_actions
  • issues/improvecodecov
  • issues/kill-child
  • issues/lgtm
  • issues/lscgroup
  • issues/lssubsys
  • issues/mainbadge
  • issues/mount-pybindings
  • issues/nocontainer
  • issues/noinst
  • issues/random
  • issues/readme
  • issues/rel2-codeql
  • issues/remove-libs
  • issues/removetestsdir
  • issues/threaded
  • issues/update-map
  • issues/v2.0.1
  • issues/validate
  • leaf-node
  • linter
  • list-cgroup-mnts-api
  • main
  • master
  • memory_abstraction
  • merge-tests
  • merge-tests-3.0
  • mount-table-overflow
  • nosystemd-job
  • options
  • pids
  • ps
  • pull/44
  • pull/45
  • pull/46
  • release-2.0
  • release-3.0
  • release-3.2
  • rename-python-set-default
  • rework-testing
  • set-property
  • set-property2
  • set-property3
  • set-property4
  • setup_mode
  • systemd
  • systemd-cexample
  • systemd-cgconfig
  • systemd-cmdline
  • systemd-pythonexample
  • test
  • test-reliability
  • test2
  • tests2
  • undefsystemd
  • update-gtest
  • update-rel2-tests
  • wip/abstract_cgget2
  • wip/cgexec-test
  • wip/cgset-tests
  • wip/cgsnapshot
  • wip/cgxget
  • wip/cgxget2
  • wip/cgxget3
  • wip/cgxget4
  • wip/delete-legacy
  • wip/dist-subdirs
  • wip/empty_cgcreate2
  • wip/emptycgs
  • wip/gh_actions
  • wip/refactor_cgget2
  • wip/release-2.0
  • wip/systemd
  • wip/systemd10
  • wip/systemd11
  • wip/systemd12
  • wip/systemd2
  • wip/systemd3
  • wip/systemd4
  • wip/systemd5
  • wip/systemd6
  • wip/systemd7
  • wip/systemd8
  • wip/systemd9
  • wip/test-cgget.new
  • wip/test-cgget.old

pending completion
5659626596

push

github

drakenclimber
cgsnapshot: Fix compiler truncation warning

Fix the following warning when running make distcheck

../../../../src/tools/cgsnapshot.c: In function ‘is_ctlr_on_list’:
../../../../src/tools/cgsnapshot.c:532:57: warning: ‘%s’ directive output may be truncated writing up to 409599 bytes into a region of size 4096 [-Wformat-truncation=]
532 |                 snprintf(controllers[i], FILENAME_MAX, "%s", tmp_controllers[i]);
    |                                                         ^~

Suggested-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>

1 of 1 new or added line in 1 file covered. (100.0%)

9 existing lines in 1 file now uncovered.

5573 of 9441 relevant lines covered (59.03%)

1379.47 hits per line

Relevant lines Covered
Build:
Build:
9441 RELEVANT LINES 5573 COVERED LINES
1379.47 HITS PER LINE
Source Files on fixwarning
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
5659626596 fixwarning cgsnapshot: Fix compiler truncation warning Fix the following warning when running make distcheck ../../../../src/tools/cgsnapshot.c: In function ‘is_ctlr_on_list’: ../../../../src/tools/cgsnapshot.c:532:57: warning: ‘%s’ directive output may be... push 25 Jul 2023 05:02PM UTC drakenclimber github pending completion  
5604182622 fixwarning cgsnapshot: Fix compiler truncation warning Fix the following warning when running `make distcheck` ../../../../src/tools/cgsnapshot.c: In function ‘is_ctlr_on_list’: ../../../../src/tools/cgsnapshot.c:532:57: warning: ‘%s’ directive output ma... push 19 Jul 2023 09:17PM UTC drakenclimber github pending completion  
See All Builds (1017)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc