Back to the main page.
Bug 297 - warning takes sprintf-like input directly
| Status |
CLOSED FIXED |
| Reported |
2010-12-12 11:17:00 +0100 |
| Modified |
2011-01-12 14:57:31 +0100 |
| Product: |
FieldTrip |
| Component: |
core |
| Version: |
unspecified |
| Hardware: |
PC |
| Operating System: |
Mac OS |
| Importance: |
P1 normal |
| Assigned to: |
Eelke Spaak |
| URL: |
|
| Tags: |
|
| Depends on: |
|
| Blocks: |
|
| See also: |
|
Robert Oostenveld - 2010-12-12 11:17:42 +0100
there are still instances of
warning(sprintf("... %s ... %d", str, num))
which should be replaced by
warning("... %s ... %d", str, num)
i.e. the sprintf is not needed because warning takes the format argument directly.
to do on linux command line
grep 'warning.*sprint' *.m
and fix all occurrences.
Do pay attention on the file externals, these should only be fixed once (otherwise you'll probably get a confused local svn version).