aboutgitcodebugslistschat
path: root/test/lib/git:
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-05-03 23:55:52 +0200
committerStefano Brivio <sbrivio@redhat.com>2026-05-07 08:06:30 +0200
commit8ad7dd45281935e8fd471fb3d3d33875ce4192b3 (patch)
tree329365b39d8ad564662d59296aeaf1f221f23dab /test/lib/git:
parent02236db326252491d485cf7a0edd359aa6248aa2 (diff)
downloadpasst-8ad7dd45281935e8fd471fb3d3d33875ce4192b3.tar
passt-8ad7dd45281935e8fd471fb3d3d33875ce4192b3.tar.gz
passt-8ad7dd45281935e8fd471fb3d3d33875ce4192b3.tar.bz2
passt-8ad7dd45281935e8fd471fb3d3d33875ce4192b3.tar.lz
passt-8ad7dd45281935e8fd471fb3d3d33875ce4192b3.tar.xz
passt-8ad7dd45281935e8fd471fb3d3d33875ce4192b3.tar.zst
passt-8ad7dd45281935e8fd471fb3d3d33875ce4192b3.zip
pesto, log: Share log.h (but not log.c) with pesto tool
In pesto we're going to want several levels of error/warning messages, much like passt itself. Particularly as we start to share mode code between passt and pesto, we want to use a similar interface to emit those. However we don't want to use the same implementation - logging to a file or syslog doesn't make sense for the command line tool. To accomplish this loosely share log.h, but not log.c between pesto and passt. In fact, an #ifdef means even most of log.h isn't actually shared, but we do provide similar warn(), die() etc. macros. This includes the *_perror() variants, which need strerror(). However, we want to avoid allocations for pesto as we do for passt, and strerror() allocates in some libc versions. Therefore, also move our workaround for this to be shared with pesto. Reviewed-by: Laurent Vivier <lvivier@redhat.com> [dwg: Based on changes part of a larger patch by Stefano] Signed-off-by: David Gibson <david@gibson.dropbear.id.au> [sbrivio: Dropped debug_perror_() as it's not used anyway, Laurent was asking about its name] [sbrivio: Fix conflicts in the Makefile caused by the fact that I'm not merging a previous series reworking it] [sbrivio: For some reason, this triggers some unrelated, but valid, cppcheck warnings in tap.c and conf.c: fix / suppress them] Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/lib/git:')
0 files changed, 0 insertions, 0 deletions