- if (simgrid::s4u::Actor::self().get() == nullptr) {
- printf("smpireplaymain should not be called directly. Please use smpirun -replay instead.\n");
+ if (simgrid::s4u::Actor::self() == nullptr) {
+ XBT_ERROR("smpireplaymain should not be called directly. Please use smpirun -replay instead.");