X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-z-assoc.cpp;h=baab950355a4efef4b4815d0020559f5ae707884;hb=572f0d8babb3b5263f9848e094f80a3ea5926770;hp=3764293bf131344c120e70e7ab143bb65133718b;hpb=7411ed6df7fc0b535f83503f73d70e80f390e295;p=yazpp-moved-to-github.git diff --git a/src/yaz-z-assoc.cpp b/src/yaz-z-assoc.cpp index 3764293..baab950 100644 --- a/src/yaz-z-assoc.cpp +++ b/src/yaz-z-assoc.cpp @@ -2,14 +2,14 @@ * Copyright (c) 1998-2004, Index Data. * See the file LICENSE for details. * - * $Id: yaz-z-assoc.cpp,v 1.38 2005-06-25 15:53:19 adam Exp $ + * $Id: yaz-z-assoc.cpp,v 1.40 2006-10-10 13:31:49 adam Exp $ */ #include #include #include -#include +#include #include using namespace yazpp_1; @@ -213,9 +213,9 @@ Z_GDU *Z_Assoc::decode_GDU(const char *buf, int len) if (!z_GDU(m_odr_in, &apdu, 0, 0)) { const char *element = odr_getelement(m_odr_in); - yaz_log(YLOG_LOG, "PDU decode failed '%s' near byte %d. Element %s", + yaz_log(YLOG_LOG, "PDU decode failed '%s' near byte %ld. Element %s", odr_errmsg(odr_geterror(m_odr_in)), - odr_offset(m_odr_in), + (long) odr_offset(m_odr_in), element ? element : "unknown"); yaz_log(YLOG_LOG, "PDU dump:"); odr_dumpBER(yaz_log_file(), buf, len);