am 49fbec6d: HACK: remove %m support from printf.
				
					
				
			* commit '49fbec6d9aee62462a4acf3ba47788ca1e35be37': HACK: remove %m support from printf.
This commit is contained in:
		@@ -230,7 +230,9 @@ static void SendRepeat(Out& o, char ch, int count) {
 | 
				
			|||||||
/* Perform formatted output to an output target 'o' */
 | 
					/* Perform formatted output to an output target 'o' */
 | 
				
			||||||
template <typename Out>
 | 
					template <typename Out>
 | 
				
			||||||
static void out_vformat(Out& o, const char* format, va_list args) {
 | 
					static void out_vformat(Out& o, const char* format, va_list args) {
 | 
				
			||||||
 | 
					#if 0
 | 
				
			||||||
    int caller_errno = errno;
 | 
					    int caller_errno = errno;
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
    int nn = 0;
 | 
					    int nn = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for (;;) {
 | 
					    for (;;) {
 | 
				
			||||||
@@ -379,9 +381,11 @@ static void out_vformat(Out& o, const char* format, va_list args) {
 | 
				
			|||||||
        } else if (c == '%') {
 | 
					        } else if (c == '%') {
 | 
				
			||||||
            buffer[0] = '%';
 | 
					            buffer[0] = '%';
 | 
				
			||||||
            buffer[1] = '\0';
 | 
					            buffer[1] = '\0';
 | 
				
			||||||
 | 
					#if 0
 | 
				
			||||||
        } else if (c == 'm') {
 | 
					        } else if (c == 'm') {
 | 
				
			||||||
            // syslog-like %m for strerror(errno).
 | 
					            // syslog-like %m for strerror(errno).
 | 
				
			||||||
            str = strerror(caller_errno);
 | 
					            str = strerror(caller_errno);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            __assert(__FILE__, __LINE__, "conversion specifier unsupported");
 | 
					            __assert(__FILE__, __LINE__, "conversion specifier unsupported");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user