Commit b6f67fb7 authored by Nils Goroll's avatar Nils Goroll

Format 0 bytes as 0b, be consistent about internal byte arguments

0 bytes are not a bogus number
parent 718531c5
......@@ -443,12 +443,12 @@ init_params(struct cli *cli)
#endif
low = sysconf(_SC_THREAD_STACK_MIN);
MCF_ParamConf(MCF_MINIMUM, "thread_pool_stack", "%jd", (intmax_t)low);
MCF_ParamConf(MCF_MINIMUM, "thread_pool_stack", "%jdb", (intmax_t)low);
def = 48 * 1024;
if (def < low)
def = low;
MCF_ParamConf(MCF_DEFAULT, "thread_pool_stack", "%jd", (intmax_t)def);
MCF_ParamConf(MCF_DEFAULT, "thread_pool_stack", "%jdb", (intmax_t)def);
MCF_ParamConf(MCF_MAXIMUM, "thread_pools", "%d", MAX_THREAD_POOLS);
......
......@@ -223,7 +223,7 @@ fmt_bytes(struct vsb *vsb, uintmax_t t)
{
const char *p;
if (t & 0xff) {
if (t == 0 || t & 0xff) {
VSB_printf(vsb, "%jub", t);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment