author | mickeyl <mickeyl> | 2005-08-31 10:47:03 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-08-31 10:47:03 (UTC) |
commit | 465eb3107bb32ad7ab2d726d8a510538fca56764 (patch) (side-by-side diff) | |
tree | 8ab94dd3a9530edc08116207493b674660fc8788 | |
parent | cde931654d1966be6989e6c8f3cfacb23e6822a2 (diff) | |
download | opie-465eb3107bb32ad7ab2d726d8a510538fca56764.zip opie-465eb3107bb32ad7ab2d726d8a510538fca56764.tar.gz opie-465eb3107bb32ad7ab2d726d8a510538fca56764.tar.bz2 |
diminish error message
-rw-r--r-- | noncore/settings/sysinfo/devicesinfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/sysinfo/devicesinfo.cpp b/noncore/settings/sysinfo/devicesinfo.cpp index 176d178..164d608 100644 --- a/noncore/settings/sysinfo/devicesinfo.cpp +++ b/noncore/settings/sysinfo/devicesinfo.cpp @@ -133,33 +133,33 @@ Category::~Category() //================================================================================================= CpuCategory::CpuCategory( DevicesView* parent ) :Category( parent, "1. Central Processing Unit" ) { } CpuCategory::~CpuCategory() { } void CpuCategory::populate() { odebug << "CpuCategory::populate()" << oendl; QFile cpuinfofile( "/proc/cpuinfo" ); if ( !cpuinfofile.exists() || !cpuinfofile.open( IO_ReadOnly ) ) { - new CpuDevice( this, "ERROR: /proc/cpuinfo not found or unaccessible" ); + new CpuDevice( this, "(no cpu found)" ); return; } QTextStream cpuinfo( &cpuinfofile ); int cpucount = 0; CpuDevice* dev = 0; while ( !cpuinfo.atEnd() ) { QString line = cpuinfo.readLine(); odebug << "got line '" << line << "'" << oendl; if ( line.lower().startsWith( "processor" ) ) { dev = new CpuDevice( this, QString( "CPU #%1" ).arg( cpucount++ ) ); dev->addInfo( line ); } @@ -219,33 +219,33 @@ void CardsCategory::populate() //================================================================================================= UsbCategory::UsbCategory( DevicesView* parent ) :Category( parent, "4. Universal Serial Bus" ) { } UsbCategory::~UsbCategory() { } void UsbCategory::populate() { odebug << "UsbCategory::populate()" << oendl; QFile usbinfofile( "/proc/bus/usb/devices" ); if ( !usbinfofile.exists() || !usbinfofile.open( IO_ReadOnly ) ) { - new UsbDevice( this, "ERROR: /proc/bus/usb/devices not found or unaccessible" ); + new UsbDevice( this, "(no USB found)" ); return; } QTextStream usbinfo( &usbinfofile ); int _bus, _level, _parent, _port, _count, _device, _channels, _power; float _speed; QString _manufacturer, _product, _serial; int usbcount = 0; UsbDevice* lastDev = 0; UsbDevice* dev = 0; while ( !usbinfo.atEnd() ) { QString line = usbinfo.readLine(); odebug << "got line '" << line << "'" << oendl; if ( line.startsWith( "T:" ) ) |