Remove unnecessary output

This commit is contained in:
Florian Märkl 2017-11-25 15:17:44 +01:00
parent be54694877
commit b7808029a2

View File

@ -235,7 +235,6 @@ bool CutterCore::loadFile(QString path, uint64_t loadaddr, uint64_t mapaddr, boo
if (va == 0 || va == 2) if (va == 0 || va == 2)
r_config_set_i(core_->config, "io.va", va); r_config_set_i(core_->config, "io.va", va);
printf("FILE OPEN (%s)\n", path.toUtf8().constData());
f = r_core_file_open(core_, path.toUtf8().constData(), rw ? (R_IO_READ | R_IO_WRITE) : R_IO_READ, mapaddr); f = r_core_file_open(core_, path.toUtf8().constData(), rw ? (R_IO_READ | R_IO_WRITE) : R_IO_READ, mapaddr);
if (!f) if (!f)
{ {
@ -252,35 +251,14 @@ bool CutterCore::loadFile(QString path, uint64_t loadaddr, uint64_t mapaddr, boo
{ {
if (va == 1) if (va == 1)
{ {
if (r_core_bin_load(core_, path.toUtf8().constData(), UT64_MAX)) if (!r_core_bin_load(core_, path.toUtf8().constData(), UT64_MAX))
{
RBinObject *obj = r_bin_get_object(core_->bin);
if (obj)
{
eprintf("BITS %d\n", obj->info->bits);
}
}
else
{ {
eprintf("CANNOT GET RBIN INFO\n"); eprintf("CANNOT GET RBIN INFO\n");
} }
} }
else else
{ {
if (r_core_bin_load(core_, path.toUtf8().constData(), UT64_MAX)) if (!r_core_bin_load(core_, path.toUtf8().constData(), UT64_MAX))
{
RBinObject *obj = r_bin_get_object(core_->bin);
if (obj)
{
eprintf("BITS %d\n", obj->info->bits);
}
else
{
eprintf("Bin load failed\n");
return false;
}
}
else
{ {
eprintf("CANNOT GET RBIN INFO\n"); eprintf("CANNOT GET RBIN INFO\n");
} }