Skip to content

Commit 977cbf3

Browse files
authored
log message whitespace fixes (#7114)
1 parent 42cc762 commit 977cbf3

9 files changed

Lines changed: 17 additions & 17 deletions

File tree

libs/openFrameworks/app/ofAppEGLWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,7 @@ void ofAppEGLWindow::processInput(int fd, const char * node){
17451745
axisValuePending = true;
17461746
break;
17471747
default:
1748-
ofLogNotice("ofAppEGLWindow") << "readMouseEvents(): unknown mouse axis (perhaps it's the scroll wheel?) : axis " << axis << " amount " << amount << endl;
1748+
ofLogNotice("ofAppEGLWindow") << "readMouseEvents(): unknown mouse axis (perhaps it's the scroll wheel?): axis " << axis << " amount " << amount << endl;
17491749
break;
17501750
}
17511751
}else if (ev.type == EV_ABS){
@@ -1803,7 +1803,7 @@ void ofAppEGLWindow::processInput(int fd, const char * node){
18031803
touchAxisValuePending = true;
18041804
break;
18051805
default:
1806-
ofLogNotice("ofAppEGLWindow") << "EV_ABS unknown axis : axis " << axis << " amount " << amount << endl;
1806+
ofLogNotice("ofAppEGLWindow") << "EV_ABS unknown axis: axis " << axis << " amount " << amount << endl;
18071807
break;
18081808
}
18091809
}else if(ev.type == EV_MSC){

libs/openFrameworks/app/ofAppGLFWWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ void ofAppGLFWWindow::setup(const ofGLFWWindowSettings & _settings){
357357
}
358358
#endif
359359

360-
ofLogVerbose() << "GL Version:" << glGetString(GL_VERSION);
360+
ofLogVerbose() << "GL Version: " << glGetString(GL_VERSION);
361361

362362
if(currentRenderer->getType()==ofGLProgrammableRenderer::TYPE){
363363
#ifndef TARGET_OPENGLES

libs/openFrameworks/gl/ofShader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ void ofShader::checkShaderInfoLog(GLuint shader, GLenum type, ofLogLevel logLeve
590590
ofBuffer::Line line = buf.getLines().begin();
591591
int offendingLineNumber = ofToInt(matches[1]);
592592
ostringstream msg;
593-
msg << "ofShader: " + nameForType(type) + ", offending line " << offendingLineNumber << " :"<< endl;
593+
msg << "ofShader: " + nameForType(type) + ", offending line " << offendingLineNumber << ":"<< endl;
594594
for(int i=0; line != buf.getLines().end(); line++, i++ ){
595595
string s = *line;
596596
if ( i >= offendingLineNumber -3 && i < offendingLineNumber + 2 ){

libs/openFrameworks/graphics/ofCairoRenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ void ofCairoRenderer::viewport(ofRectangle v){
926926
void ofCairoRenderer::viewport(float x, float y, float width, float height, bool invertY){
927927
if(width < 0) width = originalViewport.width;
928928
if(height < 0) height = originalViewport.height;
929-
ofLogVerbose("ofCairoRenderer::viewport") << "Setting viewport to:" << width << ", " << height;
929+
ofLogVerbose("ofCairoRenderer::viewport") << "Setting viewport to: " << width << ", " << height;
930930

931931
if (invertY){
932932
y = -y;

libs/openFrameworks/graphics/ofImage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ FREE_IMAGE_TYPE getFreeImageType(const ofShortPixels& pix) {
4141
case 3: return FIT_RGB16;
4242
case 4: return FIT_RGBA16;
4343
default:
44-
ofLogError("ofImage") << "getFreeImageType(): unknown FreeImage type for number of channels:" << pix.getNumChannels();
44+
ofLogError("ofImage") << "getFreeImageType(): unknown FreeImage type for number of channels: " << pix.getNumChannels();
4545
return FIT_UNKNOWN;
4646
}
4747
}
@@ -52,7 +52,7 @@ FREE_IMAGE_TYPE getFreeImageType(const ofFloatPixels& pix) {
5252
case 3: return FIT_RGBF;
5353
case 4: return FIT_RGBAF;
5454
default:
55-
ofLogError("ofImage") << "getFreeImageType(): unknown FreeImage type for number of channels:" << pix.getNumChannels();
55+
ofLogError("ofImage") << "getFreeImageType(): unknown FreeImage type for number of channels: " << pix.getNumChannels();
5656
return FIT_UNKNOWN;
5757
}
5858
}

libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,14 @@ void ofOpenALSoundPlayer::initialize(){
176176
alContext = alcCreateContext( alDevice, nullptr );
177177
if( !alContext ){
178178
ALCenum err = alcGetError( alDevice );
179-
ofLogError("ofOpenALSoundPlayer") << "initialize(): couldn't not create OpenAL context : "<< getALCErrorString( err );
179+
ofLogError("ofOpenALSoundPlayer") << "initialize(): couldn't not create OpenAL context: "<< getALCErrorString( err );
180180
close();
181181
return;
182182
}
183183

184184
if( alcMakeContextCurrent( alContext )==ALC_FALSE ){
185185
ALCenum err = alcGetError( alDevice );
186-
ofLogError("ofOpenALSoundPlayer") << "initialize(): couldn't not make current the create OpenAL context : "<< getALCErrorString( err );
186+
ofLogError("ofOpenALSoundPlayer") << "initialize(): couldn't not make current the create OpenAL context: "<< getALCErrorString( err );
187187
close();
188188
return;
189189
};
@@ -222,7 +222,7 @@ void ofOpenALSoundPlayer::close(){
222222
alContext = nullptr;
223223
}
224224
if( alcCloseDevice( alDevice )==ALC_FALSE ){
225-
ofLogNotice("ofOpenALSoundPlayer") << "initialize(): error closing OpenAL device.";
225+
ofLogNotice("ofOpenALSoundPlayer") << "initialize(): error closing OpenAL device";
226226
}
227227
alDevice = nullptr;
228228
}
@@ -503,7 +503,7 @@ bool ofOpenALSoundPlayer::load(const std::filesystem::path& _fileName, bool is_s
503503
bLoadedOk = stream(fileName, buffer);
504504
}
505505
if( !bLoadedOk ) {
506-
ofLogError("ofOpenALSoundPlayer::load : ERROR loading file from ") << fileName;
506+
ofLogError("ofOpenALSoundPlayer") << "loadSound(): couldn't read \"" << fileName << "\"";
507507
return false;
508508
}
509509

@@ -531,7 +531,7 @@ bool ofOpenALSoundPlayer::load(const std::filesystem::path& _fileName, bool is_s
531531
alBufferData(buffers[i],format,&buffer[0],buffer.size()*2,samplerate);
532532
err = alGetError();
533533
if (err != AL_NO_ERROR){
534-
ofLogError("ofOpenALSoundPlayer:") << "loadSound(): couldn't create buffer for \"" << fileName << "\": "
534+
ofLogError("ofOpenALSoundPlayer") << "loadSound(): couldn't create buffer for \"" << fileName << "\": "
535535
<< (int) err << " " << getALErrorString(err);
536536
return false;
537537
}

libs/openFrameworks/utils/ofFileUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ bool ofFile::copyTo(const std::filesystem::path& _path, bool bRelativeToData, bo
950950
}
951951
std::filesystem::copy_file(myFile,path);
952952
}catch(std::exception & except){
953-
ofLogError("ofFile") << "copyTo(): unable to copy \"" << path << "\":" << except.what();
953+
ofLogError("ofFile") << "copyTo(): unable to copy \"" << path << "\": " << except.what();
954954
return false;
955955
}
956956

@@ -1008,7 +1008,7 @@ bool ofFile::moveTo(const std::filesystem::path& _path, bool bRelativeToData, bo
10081008
}
10091009
}
10101010
catch(std::exception & except){
1011-
ofLogError("ofFile") << "moveTo(): unable to move \"" << path << "\":" << except.what();
1011+
ofLogError("ofFile") << "moveTo(): unable to move \"" << path << "\": " << except.what();
10121012
return false;
10131013
}
10141014

libs/openFrameworks/utils/ofUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ std::locale loc;
768768
if( printonce ){
769769
std::string current( setlocale(LC_ALL,NULL) );
770770
setlocale (LC_ALL,"");
771-
ofLogWarning("ofUtils") << "std::locale not supported. Using C locale :" << current ;
771+
ofLogWarning("ofUtils") << "std::locale not supported. Using C locale: " << current ;
772772
printonce = false;
773773
}
774774
#else

libs/openFrameworks/utils/ofXml.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ bool ofXml::load(const std::filesystem::path & file){
2323
xml = doc->root();
2424
return true;
2525
}else{
26-
ofLogWarning("ofXml") << "Cannot load file " << file << ":" << res.description();
26+
ofLogWarning("ofXml") << "Cannot load file " << file << ": " << res.description();
2727
return false;
2828
}
2929
}
@@ -50,7 +50,7 @@ bool ofXml::parse(const std::string & xmlStr){
5050
bool ofXml::save(const std::filesystem::path & file) const{
5151
if(xml == doc->root()){
5252
auto res = doc->save_file(ofToDataPath(file).c_str());
53-
ofLogVerbose("ofXml")<<"ofXML Save : "<< res;
53+
ofLogVerbose("ofXml")<<"save: "<< res;
5454
ofLogVerbose("ofXml")<<this->toString();
5555
return res;
5656
}else{

0 commit comments

Comments
 (0)