Revision 05476c4d lib/printf.c

View differences:

lib/printf.c
221 221
			continue;
222 222

  
223 223
		case 'm':
224
			if (flags & SPECIAL) {
225
				if (!errno)
226
					continue;
227
				if (size < 2)
228
					return -1;
229
				*str++ = ':';
230
				*str++ = ' ';
231
				start += 2;
232
				size -= 2;
233
			}
224 234
			s = strerror(errno);
225 235
			goto str;
226 236
		case 'M':

Also available in: Unified diff