for (i = 0; i < NDRIVERS; i++) {
if (strcasecmp(name, drivers[i]->name) == 0) {
- dbprintf(("security_getdriver(name=%s) returns %p\n",
- name, drivers[i]));
+ dbprintf(("%s: security_getdriver(name=%s) returns %p\n",
+ debug_prefix_time(NULL), name, drivers[i]));
return (drivers[i]);
}
}
- dbprintf(("security_getdriver(name=%s) returns NULL\n", name));
+ dbprintf(("%s: security_getdriver(name=%s) returns NULL\n",
+ debug_prefix_time(NULL), name));
return (NULL);
}
security_handle_t * handle,
const security_driver_t * driver)
{
- dbprintf(("security_handleinit(handle=%p, driver=%p (%s))\n",
- handle, driver, driver->name));
+ dbprintf(("%s: security_handleinit(handle=%p, driver=%p (%s))\n",
+ debug_prefix_time(NULL), handle, driver, driver->name));
handle->driver = driver;
handle->error = stralloc("unknown protocol error");
}
vsnprintf(buf, SIZEOF(buf), fmt, argp);
arglist_end(argp);
handle->error = newstralloc(handle->error, buf);
- dbprintf(("security_seterror(handle=%p, driver=%p (%s) error=%s)\n",
- handle, handle->driver, handle->driver->name, handle->error));
+ dbprintf(("%s: security_seterror(handle=%p, driver=%p (%s) error=%s)\n",
+ debug_prefix_time(NULL), handle, handle->driver,
+ handle->driver->name, handle->error));
}
void
security_close(
security_handle_t * handle)
{
- dbprintf(("security_close(handle=%p, driver=%p (%s))\n",
- handle, handle->driver, handle->driver->name));
+ dbprintf(("%s: security_close(handle=%p, driver=%p (%s))\n",
+ debug_prefix_time(NULL), handle, handle->driver,
+ handle->driver->name));
amfree(handle->error);
(*handle->driver->close)(handle);
}
security_stream_t * stream,
const security_driver_t * driver)
{
- dbprintf(("security_streaminit(stream=%p, driver=%p (%s))\n",
- stream, driver, driver->name));
+ dbprintf(("%s: security_streaminit(stream=%p, driver=%p (%s))\n",
+ debug_prefix_time(NULL), stream, driver, driver->name));
stream->driver = driver;
stream->error = stralloc("unknown stream error");
}
vsnprintf(buf, SIZEOF(buf), fmt, argp);
arglist_end(argp);
stream->error = newstralloc(stream->error, buf);
- dbprintf(("security_stream_seterr(%p, %s)\n", stream, stream->error));
+ dbprintf(("%s: security_stream_seterr(%p, %s)\n",
+ debug_prefix_time(NULL), stream, stream->error));
}
void
security_stream_close(
security_stream_t * stream)
{
- dbprintf(("security_stream_close(%p)\n", stream));
+ dbprintf(("%s: security_stream_close(%p)\n",
+ debug_prefix_time(NULL), stream));
amfree(stream->error);
(*stream->driver->stream_close)(stream);
}