summaryrefslogtreecommitdiffhomepage
path: root/src/output/sfrt_output_address.c
blob: c9b16a1b166b3e1cffcacd58bb5c76d872abf9fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>

#include <sofort/sofort.h>
#include "sofort_driver_impl.h"
#include "sofort_dprintf_impl.h"

int sfrt_output_address(
	const struct sfrt_driver_ctx *	dctx,
	const struct sfrt_unit_ctx *	uctx)
{
	return sfrt_dprintf(
		sfrt_driver_fdout(dctx),
		"%*p\n",
		(int)(2*sizeof(size_t)),
		uctx->map->addr);
}