1a74702c6SGeorge Wang/* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ 250aadb33SDmitri Tikhonov/* 350aadb33SDmitri Tikhonov * lsquic_senhist.c -- Sent history implementation 450aadb33SDmitri Tikhonov */ 550aadb33SDmitri Tikhonov 650aadb33SDmitri Tikhonov#include <inttypes.h> 750aadb33SDmitri Tikhonov#include <stdio.h> 850aadb33SDmitri Tikhonov 950aadb33SDmitri Tikhonov#include "lsquic_int_types.h" 1050aadb33SDmitri Tikhonov#include "lsquic_senhist.h" 1150aadb33SDmitri Tikhonov 1250aadb33SDmitri Tikhonov 1350aadb33SDmitri Tikhonovvoid 1450aadb33SDmitri Tikhonovlsquic_senhist_tostr (lsquic_senhist_t *hist, char *buf, size_t bufsz) 1550aadb33SDmitri Tikhonov{ 1616a9b66aSDmitri Tikhonov if (hist->sh_last_sent) 1716a9b66aSDmitri Tikhonov snprintf(buf, bufsz, "[1-%"PRIu64"]", hist->sh_last_sent); 1816a9b66aSDmitri Tikhonov else 1916a9b66aSDmitri Tikhonov snprintf(buf, bufsz, "[]"); 20c51ce338SDmitri Tikhonov} 21