summaryrefslogtreecommitdiffstats
path: root/cpukit/libtrace/record/record-dump-zbase64.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2024-01-25 17:51:06 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2024-02-16 09:32:04 +0100
commit317df86ba3b392410cb3e7d6ac99e182cdd2ea3c (patch)
tree5709313e28a49aa5e99920ec37939c6842f57e4a /cpukit/libtrace/record/record-dump-zbase64.c
parenti386: Restore SMP functionality (diff)
downloadrtems-317df86ba3b392410cb3e7d6ac99e182cdd2ea3c.tar.bz2
base64: Move base64 encoding support
Diffstat (limited to '')
-rw-r--r--cpukit/libtrace/record/record-dump-zbase64.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpukit/libtrace/record/record-dump-zbase64.c b/cpukit/libtrace/record/record-dump-zbase64.c
index 0979e36a47..43bd0ecff8 100644
--- a/cpukit/libtrace/record/record-dump-zbase64.c
+++ b/cpukit/libtrace/record/record-dump-zbase64.c
@@ -30,11 +30,12 @@
#endif
#include <rtems/recorddump.h>
-#include <rtems/dev/io.h>
#include <limits.h>
#include <string.h>
+#include <rtems/base64.h>
+
static void *dump_zalloc( void *opaque, unsigned items, unsigned size )
{
rtems_record_dump_base64_zlib_context *ctx;
@@ -96,7 +97,7 @@ static void chunk( void *arg, const void *data, size_t length )
ctx->stream.next_out = &ctx->buf[ 0 ];
ctx->stream.avail_out = sizeof( ctx->buf );
- _IO_Base64( put_char, ctx, ctx->buf, sizeof( ctx->buf ), NULL, INT_MAX );
+ _Base64_Encode( put_char, ctx, ctx->buf, sizeof( ctx->buf ), NULL, INT_MAX );
}
}
}
@@ -115,11 +116,11 @@ static void flush( rtems_record_dump_base64_zlib_context *ctx )
ctx->stream.next_out = &ctx->buf[ 0 ];
ctx->stream.avail_out = sizeof( ctx->buf );
- _IO_Base64( put_char, ctx, ctx->buf, sizeof( ctx->buf ), NULL, INT_MAX );
+ _Base64_Encode( put_char, ctx, ctx->buf, sizeof( ctx->buf ), NULL, INT_MAX );
}
}
- _IO_Base64(
+ _Base64_Encode(
put_char,
ctx,
ctx->buf,