-/* $Id: kcompare.c,v 1.53 2004-11-04 11:47:23 heikki Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
- Index Data Aps
+/* $Id: kcompare.c,v 1.58 2006-05-10 08:13:21 adam Exp $
+ Copyright (C) 1995-2005
+ Index Data ApS
This file is part of the Zebra server.
#define CODEC_INLINE
#endif
-void key_logdump_txt (int logmask, const void *p, const char *txt)
+void key_logdump_txt(int logmask, const void *p, const char *txt)
{
struct it_key key;
+ if (!txt)
+ txt = "(none)";
if (p)
{
char formstr[128];
strcat(formstr, ".");
sprintf(formstr + strlen(formstr), ZINT_FORMAT, key.mem[i]);
}
- logf (logmask, "%s %s", formstr, txt);
+ yaz_log(logmask, "%s %s", formstr, txt);
}
else
- logf(logmask, " (null) %s",txt);
+ yaz_log(logmask, " (no key) %s",txt);
}
-void key_logdump (int logmask, const void *p)
+void key_logdump(int logmask, const void *p)
{
key_logdump_txt(logmask, p, "");
}
ISAMC_M *key_isamc_m (Res res, ISAMC_M *me)
{
- isc_getmethod (me);
+ isamc_getmethod (me);
me->compare_item = key_compare;
me->log_item = key_logdump_txt;
return len;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+