From 1d4a9e7cb47178077e112f73bf6a60397f519497 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 25 Oct 2016 20:31:05 -0400 Subject: driver: struct mdso_error_info: extend and refactor. --- src/internal/mdso_errinfo_impl.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'src/internal/mdso_errinfo_impl.c') diff --git a/src/internal/mdso_errinfo_impl.c b/src/internal/mdso_errinfo_impl.c index e106f47..fbd8433 100644 --- a/src/internal/mdso_errinfo_impl.c +++ b/src/internal/mdso_errinfo_impl.c @@ -10,12 +10,12 @@ int mdso_record_error( const struct mdso_driver_ctx * dctx, - int syserror, - int liberror, - const char * function, - int line, - unsigned flags, - void * ctx) + int esyscode, + int elibcode, + const char * efunction, + int eline, + unsigned eflags, + void * eany) { struct mdso_driver_ctx_impl * ictx; struct mdso_error_info * erri; @@ -28,12 +28,13 @@ int mdso_record_error( *ictx->errinfp = &ictx->erribuf[ictx->errinfp - ictx->erriptr]; erri = *ictx->errinfp; - erri->syserror = syserror; - erri->liberror = liberror; - erri->function = function; - erri->line = line; - erri->flags = flags; - erri->ctx = ctx; + erri->edctx = dctx; + erri->esyscode = esyscode; + erri->elibcode = elibcode; + erri->efunction = efunction; + erri->eline = eline; + erri->eflags = eflags; + erri->eany = eany; ictx->errinfp++; -- cgit v1.2.3