]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
libcephfs_proxy: avoid libc buffering for logging
authorXavi Hernandez <xhernandez@gmail.com>
Mon, 31 Mar 2025 09:02:10 +0000 (11:02 +0200)
committerXavi Hernandez <xhernandez@gmail.com>
Fri, 4 Apr 2025 09:51:38 +0000 (11:51 +0200)
commit162d0294253f499e92df101c12b9a29f832ad724
tree5cab0f5950014419fc695fc48e283680b0407c67
parent7861012264b7dc9062f08e37d6b32ab8c88fdae6
libcephfs_proxy: avoid libc buffering for logging

Instead of using printf() for writing loggin information, which gets
buffered by libc when the destination is not a terminal, we use a direct
write to the standard output to avoid this buffering.

Signed-off-by: Xavi Hernandez <xhernandez@gmail.com>
src/libcephfs_proxy/libcephfsd.c