1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2023 Red Hat
6 #include "string-utils.h"
8 char *vdo_append_to_buffer(char *buffer
, char *buf_end
, const char *fmt
, ...)
14 n
= vsnprintf(buffer
, buf_end
- buffer
, fmt
, args
);
15 if (n
>= (size_t) (buf_end
- buffer
))