From 491c2e4503b23c701f07792b1ecfc01ab68802d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 24 Mar 2016 16:36:54 +0100 Subject: Remove warnings about missing embedded ELF icons Add file name for which the issue occurs into debug message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- tdeio/tdeio/kurifilter.cpp | 4 ++-- tdeio/tdeio/tdefileitem.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tdeio') diff --git a/tdeio/tdeio/kurifilter.cpp b/tdeio/tdeio/kurifilter.cpp index 3d79d0bfd..6ae0017be 100644 --- a/tdeio/tdeio/kurifilter.cpp +++ b/tdeio/tdeio/kurifilter.cpp @@ -217,7 +217,7 @@ TQString KURIFilterData::iconName() if((handle = libr_open(const_cast(m_pURI.path().ascii()), access)) == NULL) { - kdWarning() << "failed to open file" << m_pURI.path() << endl; + kdWarning() << "failed to open file " << m_pURI.path() << endl; libr_can_continue = 0; } @@ -234,7 +234,7 @@ TQString KURIFilterData::iconName() if(!get_iconlist(handle, &icons)) { // Failed to obtain a list of ELF icons - kdWarning() << "failed to obtain ELF icon: " << libr_errmsg() << endl; + kdDebug() << "failed to obtain ELF icon from " << m_pURI.path() << ": " << libr_errmsg() << endl; // See if there is a system icon we can use TQString sysIconName = elf_get_resource(handle, ".metadata_sysicon"); diff --git a/tdeio/tdeio/tdefileitem.cpp b/tdeio/tdeio/tdefileitem.cpp index 8ef5072ce..b852fa35d 100644 --- a/tdeio/tdeio/tdefileitem.cpp +++ b/tdeio/tdeio/tdefileitem.cpp @@ -730,7 +730,7 @@ TQPixmap KFileItem::pixmap( int _size, int _state ) const if(!get_iconlist(handle, &icons)) { // Failed to obtain a list of ELF icons - kdWarning() << "failed to obtain ELF icon: " << libr_errmsg() << endl; + kdDebug() << "failed to obtain ELF icon from " << url.path() << ": " << libr_errmsg() << endl; // See if there is a system icon we can use TQString sysIconName = elf_get_resource(handle, ".metadata_sysicon"); -- cgit v1.2.1