From 57f342753ea40b66544494048193fc92435877aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 20 Sep 2011 16:54:46 +0000 Subject: sprintf formatting svn path=/trunk/externals/zexy/; revision=15317 --- src/msgfile.c | 4 ++-- src/rawprint.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/msgfile.c b/src/msgfile.c index bc76768..1d6224c 100644 --- a/src/msgfile.c +++ b/src/msgfile.c @@ -659,7 +659,7 @@ static void msgfile_read2(t_msgfile *x, t_symbol *filename, t_symbol *format) fseek(fil, 0, SEEK_SET); if (!(readbuf = t_getbytes(length))) { - pd_error(x, "msgfile_read: could not reserve %d bytes to read into", length); + pd_error(x, "msgfile_read: could not reserve %ld bytes to read into", length); close(fd); return; } @@ -690,7 +690,7 @@ static void msgfile_read2(t_msgfile *x, t_symbol *filename, t_symbol *format) /* read */ if ((readlength = fread(readbuf, sizeof(char), length, fil)) < length) { - pd_error(x, "msgfile_read: unable to read %s: %d of %d", filnam, readlength, length); + pd_error(x, "msgfile_read: unable to read %s: %ld of %ld", filnam, readlength, length); fclose(fil); t_freebytes(readbuf, length); return; diff --git a/src/rawprint.c b/src/rawprint.c index 9411dec..1fa39fd 100644 --- a/src/rawprint.c +++ b/src/rawprint.c @@ -46,7 +46,7 @@ static void rawprint_any(t_rawprint *x, t_symbol*s, int argc, t_atom*argv) snprintf(buf, MAXPDSTRING-1, "'%s'", atom_getsymbol(argv)->s_name); break; case A_POINTER: - snprintf(buf, MAXPDSTRING-1, "pointer[0x%X]", argv->a_w.w_gpointer); + snprintf(buf, MAXPDSTRING-1, "pointer[%p]", argv->a_w.w_gpointer); break; case A_SEMI: snprintf(buf, MAXPDSTRING-1, "SEMI"); -- cgit v1.2.1