2009-11-16 Ralf Corsépius <ralf.corsepius@rtems.org>

* rtems++/Task3.cc: Use %zu instead of %i to print size_t's.
	Remove bogus cast.
This commit is contained in:
Ralf Corsepius
2009-11-16 04:55:17 +00:00
parent 7eab7adeb9
commit be6a9a2dee
2 changed files with 4 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
2009-11-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems++/Task3.cc: Use %zu instead of %i to print size_t's.
Remove bogus cast.
* rtems++/Task1.cc: Use %zu instead of %i to print size_t's.
2009-11-14 Ralf Corsépius <ralf.corsepius@rtems.org>

View File

@@ -52,8 +52,8 @@ void Task3::screen6()
printf("%s - loopback from mq_2 to mq_2 ...\n", name_string()); fflush(stdout);
mq_2.receive(in, size);
printf("%s - mq_2 receive - %s, size=%i, message string size=%i\n",
name_string(), mq_2.last_status_string(), size, (int) strlen(in));
printf("%s - mq_2 receive - %s, size=%zu, message string size=%zu\n",
name_string(), mq_2.last_status_string(), size, strlen(in));
if (mq_2.successful())
{
if (size > (100 - 5))