RTLogWriteDebugger-r0drv-solaris.c revision 6b2e1c703bfafe40110d3769b132c1462b0fc8bb
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync/* $Id$ */
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync/** @file
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * innotek Portable Runtime - Log To Debugger, Ring-0 Driver, Solaris.
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync */
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync/*
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * Copyright (C) 2006-2007 innotek GmbH
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync *
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * available from http://www.virtualbox.org. This file is free software;
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * you can redistribute it and/or modify it under the terms of the GNU
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * General Public License (GPL) as published by the Free Software
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync *
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * The contents of this file may alternatively be used under the terms
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * of the Common Development and Distribution License Version 1.0
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * VirtualBox OSE distribution, in which case the provisions of the
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * CDDL are applicable instead of those of the GPL.
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync *
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * You may elect to license modified versions of this file under the
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync * terms and conditions of either the GPL or the CDDL or both.
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync */
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync#include "the-solaris-kernel.h"
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync#include <iprt/log.h>
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync#include <iprt/assert.h>
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsyncRTDECL(void) RTLogWriteDebugger(const char *pch, size_t cb)
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync{
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync if (pch[cb] != '\0')
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync AssertBreakpoint();
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync cmn_err(CE_CONT, pch);
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync return;
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync}
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync