make style

This commit is contained in:
Philippe Teuwen 2013-03-08 00:35:04 +01:00
parent 37cf7554d9
commit fef6517e27
2 changed files with 3 additions and 8 deletions

View file

@ -81,11 +81,6 @@ log_put(const uint8_t group, const char *category, const uint8_t priority, const
va_list va; va_list va;
va_start(va, format); va_start(va, format);
// fprintf(stderr, "%s\t%s\t", log_priority_to_str(priority), category);
// vfprintf(stderr, format, va);
// fprintf(stderr, "\n");
log_put_internal("%s\t%s\t", log_priority_to_str(priority), category); log_put_internal("%s\t%s\t", log_priority_to_str(priority), category);
log_vput_internal(format, va); log_vput_internal(format, va);
log_put_internal("\n"); log_put_internal("\n");

View file

@ -30,10 +30,10 @@ void
log_output_debug(const char *format, va_list args) log_output_debug(const char *format, va_list args)
{ {
char buffer[1024]; char buffer[1024];
HRESULT hr = StringCbVPrintf( buffer, sizeof( buffer ), format, args ); HRESULT hr = StringCbVPrintf(buffer, sizeof(buffer), format, args);
// Spew what we got, even if the buffer is not sized large enough // Spew what we got, even if the buffer is not sized large enough
if ( (STRSAFE_E_INSUFFICIENT_BUFFER == hr) || (S_OK == hr) ) if ((STRSAFE_E_INSUFFICIENT_BUFFER == hr) || (S_OK == hr))
OutputDebugString( buffer ); OutputDebugString(buffer);
} }
void void