lsquic_senhist.c revision a74702c6
1/* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ 2/* 3 * lsquic_senhist.c -- Sent history implementation 4 */ 5 6#include <inttypes.h> 7#include <stdio.h> 8 9#include "lsquic_int_types.h" 10#include "lsquic_senhist.h" 11 12 13void 14lsquic_senhist_tostr (lsquic_senhist_t *hist, char *buf, size_t bufsz) 15{ 16 if (hist->sh_last_sent) 17 snprintf(buf, bufsz, "[1-%"PRIu64"]", hist->sh_last_sent); 18 else 19 snprintf(buf, bufsz, "[]"); 20} 21