From: simonmar Date: Mon, 9 Jan 2006 14:32:31 +0000 (+0000) Subject: [project @ 2006-01-09 14:32:31 by simonmar] X-Git-Tag: final_switch_to_darcs,_this_repo_is_now_live~53 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=8ec4842b5dd3a15d0afda537b9461402d6e7f80d [project @ 2006-01-09 14:32:31 by simonmar] Use correct format specifier for a size_t value --- diff --git a/ghc/utils/prof/cgprof/matrix.c b/ghc/utils/prof/cgprof/matrix.c index 3ff0f60..b4ca43f 100644 --- a/ghc/utils/prof/cgprof/matrix.c +++ b/ghc/utils/prof/cgprof/matrix.c @@ -1,5 +1,5 @@ /* ------------------------------------------------------------------------ - * $Id: matrix.c,v 1.2 2001/07/24 06:01:21 ken Exp $ + * $Id: matrix.c,v 1.3 2006/01/09 14:32:31 simonmar Exp $ * * Copyright (C) 1995-2000 University of Oxford * @@ -70,7 +70,7 @@ void *_Mat(Matrix *mat,int x, int y,int lineno, char *filename) { /* Not in list */ ptr = (Matrix_element*) malloc(sizeof(Matrix_element)); if (ptr==NULL) { - fprintf(stderr,"{_Mat} failed to allocate %d bytes\n", + fprintf(stderr,"{_Mat} failed to allocate %zd bytes\n", sizeof(Matrix_element)); exit(1); }