Right now, _fatal can only take strings, no formats. It's annoying to snprintf into a buffer, and it wastes static memory, so there should be a function which lets us say something like:
Error loading server cert from file [%s]: [error]. In this case, the call would be something like _fatal_file(logfd, "Error loading server cert", cert_filename, TPX_ERR_OSSL);
Right now,
_fatalcan only take strings, no formats. It's annoying to snprintf into a buffer, and it wastes static memory, so there should be a function which lets us say something like:Error loading server cert from file [%s]: [error]. In this case, the call would be something like_fatal_file(logfd, "Error loading server cert", cert_filename, TPX_ERR_OSSL);