Commit 7bcd7c2d authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix some debug stuff

parent 68d0e127
......@@ -145,7 +145,6 @@ bool KisPaintOpPreset::load()
QByteArray ba;
if (filename().startsWith("bundle://")) {
dbgKrita << "bundle";
QString bn = filename().mid(9);
int pos = bn.lastIndexOf(":");
QString fn = bn.right(bn.size() - pos - 1);
......
......@@ -31,7 +31,6 @@ template<>
MaskApplicatorFactory<KisMaskGenerator, KisBrushMaskScalarApplicator>::ReturnType
MaskApplicatorFactory<KisMaskGenerator, KisBrushMaskScalarApplicator>::create<VC_IMPL>(ParamType maskGenerator)
{
// dbgKrita << "Creating scalar applicator" << b(VC_IMPL);
return new KisBrushMaskScalarApplicator<KisMaskGenerator,VC_IMPL>(maskGenerator);
}
......@@ -40,7 +39,6 @@ template<>
MaskApplicatorFactory<KisCircleMaskGenerator, KisBrushMaskVectorApplicator>::ReturnType
MaskApplicatorFactory<KisCircleMaskGenerator, KisBrushMaskVectorApplicator>::create<VC_IMPL>(ParamType maskGenerator)
{
// dbgKrita << "Creating vector applicator" << b(VC_IMPL);
return new KisBrushMaskVectorApplicator<KisCircleMaskGenerator,VC_IMPL>(maskGenerator);
}
......
......@@ -47,7 +47,7 @@ KisImageConfig::~KisImageConfig()
if (m_readOnly) return;
if (qApp->thread() != QThread::currentThread()) {
dbgKrita << "WARNING: KisImageConfig: requested config synchronization from nonGUI thread! Skipping...";
dbgKrita << "KisImageConfig: requested config synchronization from nonGUI thread! Called from" << kisBacktrace();
return;
}
......@@ -365,7 +365,6 @@ int KisImageConfig::totalRAM()
errno = 0;
if (sysctl(mib, namelen, &size, &len, NULL, 0) >= 0) {
totalMemory = size >> 20;
dbgKrita << "sysctl(\"hw.memsize\") returned size=" << size << " =>" << totalMemory << "MiB";
error = 0;
}
else {
......@@ -373,9 +372,8 @@ int KisImageConfig::totalRAM()
}
#endif
if(error) {
dbgKrita << "Cannot get the size of your RAM."
<< "Using default value of 1GiB.";
if (error) {
warnKrita << "Cannot get the size of your RAM. Using 1 GiB by default.";
}
return totalMemory;
......
......@@ -104,7 +104,7 @@ void KisTabletDebugger::toggleDebugging()
dbgTablet << "vvvvvvvvvvvvvvvvvvvvvvv START TABLET EVENT LOG vvvvvvvvvvvvvvvvvvvvvvv";
}
else {
dbgTablet << "^^^^^^^^^^^^^^^^^^^^^^^ START TABLET EVENT LOG ^^^^^^^^^^^^^^^^^^^^^^^";
dbgTablet << "^^^^^^^^^^^^^^^^^^^^^^^ END TABLET EVENT LOG ^^^^^^^^^^^^^^^^^^^^^^^";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment