Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我用“坏”字符做 printk 时,有时我会扰乱我的屏幕,
打印它们时这是不可避免的吗?
在命令行上键入reset并 Enter 以再次修复它。如果您不再看到它,您可能不得不盲目地输入它,但它经常工作。根据您设置环境的方式,有些字符在不弄乱命令行的情况下无法打印。
您可以尝试打印十六进制值%x。像这样,通常更容易找到数据背后的逻辑。