mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
mlkem: Use fprintf instead of internal logging function
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Pavol Žáčik <pzacik@redhat.com>
This commit is contained in:
5
src/external/libcrux_mlkem768_sha3.c
vendored
5
src/external/libcrux_mlkem768_sha3.c
vendored
@@ -28,8 +28,9 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "libssh/mlkem_native.h"
|
#include "libssh/mlkem_native.h"
|
||||||
#include "libssh/priv.h"
|
|
||||||
|
|
||||||
#if !defined(__GNUC__) || (__GNUC__ < 2)
|
#if !defined(__GNUC__) || (__GNUC__ < 2)
|
||||||
# define __attribute__(x)
|
# define __attribute__(x)
|
||||||
@@ -38,7 +39,7 @@
|
|||||||
#define KRML_NOINLINE __attribute__((noinline, unused))
|
#define KRML_NOINLINE __attribute__((noinline, unused))
|
||||||
#define KRML_HOST_EPRINTF(...)
|
#define KRML_HOST_EPRINTF(...)
|
||||||
#define KRML_HOST_EXIT(x) do { \
|
#define KRML_HOST_EXIT(x) do { \
|
||||||
SSH_LOG(SSH_LOG_WARNING, "internal error"); \
|
fprintf(stderr, "mlkem internal error"); \
|
||||||
exit(x); \
|
exit(x); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user