Git Product home page Git Product logo

Comments (4)

huaicheng avatar huaicheng commented on June 4, 2024

You can comment out the corresponding printf() in hw/block/ssd/ftl.c Line 305 and recompile FEMU to get rid of it.

from femu.

IcicleF avatar IcicleF commented on June 4, 2024

Thanks for your quick reply!
Unfortunately this is not the only one. For example it is observed that printf at hw/block/ssd/ftl_gc_manager.c Line 155 will also print to terminal.
There are many other printf calls in source files in hw/block/ssd. Is it that I should comment out all of them?
Thank you in advance.

from femu.

huaicheng avatar huaicheng commented on June 4, 2024

Many printf()s are not in the hot path (for debugging purpose) and they're not being triggered very often. Depending on what you want to achieve, you can comment out all of them.

You can also simply redirect all the output into a log file, add "> log 2>&1" at the end of qemu command line in the VM script.

from femu.

IcicleF avatar IcicleF commented on June 4, 2024

It's very helpful.
Thank you very much.

from femu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.