Commit eef48993 authored by Stratos Psomadakis's avatar Stratos Psomadakis

Remove deprecated XSEGLOG

parent c53f19ef
......@@ -64,9 +64,7 @@ EXPORT_SYMBOL(xseg_bind_dynport);
EXPORT_SYMBOL(xseg_leave_dynport);
EXPORT_SYMBOL(xseg_portno_nonstatic);
EXPORT_SYMBOL(xseg_snprintf);
EXPORT_SYMBOL(__xseg_errbuf);
EXPORT_SYMBOL(__xseg_log);
EXPORT_SYMBOL(init_logctx);
EXPORT_SYMBOL(__xseg_log2);
EXPORT_SYMBOL(xseg_printtrace);
......@@ -34,8 +34,6 @@ uint64_t __get_id(void);
void __get_current_time(struct timeval *tv);
extern char __xseg_errbuf[4096];
void __xseg_log(const char *msg);
extern int (*xseg_snprintf)(char *str, size_t size, const char *format, ...);
enum log_level { E = 0, W = 1, I = 2, D = 3};
......
......@@ -41,8 +41,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define FMTARG(fmt, arg, format, ...) fmt format "%s", arg, ## __VA_ARGS__
#define XSEGLOG(...) (xseg_snprintf(__xseg_errbuf, 4096, FMTARG("%s: ", __func__, ## __VA_ARGS__, "")), \
__xseg_errbuf[4095] = 0, __xseg_log(__xseg_errbuf))
#define XSEGLOG2(__ctx, __level, ...) \
do { \
......
......@@ -38,8 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <xseg/xlock.h>
int (*xseg_snprintf)(char *str, size_t size, const char *format, ...) = snprintf;
char __xseg_errbuf[4096];
static struct xlock __lock = { .owner = XLOCK_NOONE};
......@@ -88,12 +86,6 @@ uint64_t __get_id(void)
return (uint64_t)syscall(SYS_gettid);
}
void __xseg_log(const char *msg)
{
fprintf(stderr, "%s", msg);
fflush(stderr);
}
void *xtypes_malloc(unsigned long size)
{
return malloc(size);
......
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