subr_prf.c (108890) | subr_prf.c (109623) |
---|---|
1/*- 2 * Copyright (c) 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94 | 1/*- 2 * Copyright (c) 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94 |
39 * $FreeBSD: head/sys/kern/subr_prf.c 108890 2003-01-07 18:17:18Z jhb $ | 39 * $FreeBSD: head/sys/kern/subr_prf.c 109623 2003-01-21 08:56:16Z alfred $ |
40 */ 41 42#include "opt_ddb.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/lock.h> 47#include <sys/mutex.h> --- 207 unchanged lines hidden (view full) --- 255 int pri; 256 257 if (!log_console_output) 258 return; 259 260 pri = LOG_INFO | LOG_CONSOLE; 261 muio = *uio; 262 iovlen = uio->uio_iovcnt * sizeof (struct iovec); | 40 */ 41 42#include "opt_ddb.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/lock.h> 47#include <sys/mutex.h> --- 207 unchanged lines hidden (view full) --- 255 int pri; 256 257 if (!log_console_output) 258 return; 259 260 pri = LOG_INFO | LOG_CONSOLE; 261 muio = *uio; 262 iovlen = uio->uio_iovcnt * sizeof (struct iovec); |
263 MALLOC(miov, struct iovec *, iovlen, M_TEMP, M_WAITOK); 264 MALLOC(consbuffer, char *, CONSCHUNK, M_TEMP, M_WAITOK); | 263 MALLOC(miov, struct iovec *, iovlen, M_TEMP, 0); 264 MALLOC(consbuffer, char *, CONSCHUNK, M_TEMP, 0); |
265 bcopy(muio.uio_iov, miov, iovlen); 266 muio.uio_iov = miov; 267 uio = &muio; 268 269 nl = 0; 270 while (uio->uio_resid > 0) { 271 c = imin(uio->uio_resid, CONSCHUNK); 272 error = uiomove(consbuffer, c, uio); --- 658 unchanged lines hidden --- | 265 bcopy(muio.uio_iov, miov, iovlen); 266 muio.uio_iov = miov; 267 uio = &muio; 268 269 nl = 0; 270 while (uio->uio_resid > 0) { 271 c = imin(uio->uio_resid, CONSCHUNK); 272 error = uiomove(consbuffer, c, uio); --- 658 unchanged lines hidden --- |