diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2011-09-20 16:54:46 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2011-09-20 16:54:46 +0000 |
commit | 57f342753ea40b66544494048193fc92435877aa (patch) | |
tree | 6693fa700f4f539d35a0ed1e6e39f689ab72046d | |
parent | 474fa40a564fe78f7b759a34a7f0bf0cbc4638f7 (diff) |
sprintf formatting
svn path=/trunk/externals/zexy/; revision=15317
-rw-r--r-- | src/msgfile.c | 4 | ||||
-rw-r--r-- | src/rawprint.c | 2 |
2 files changed, 3 insertions, 3 deletions
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"); |