Update preferences.cpp

removed print statements