Comments (6)
This could easily be rectified by just removing kvsprintf and using vsprintf instead, since that's in newlib
from libogc.
I seem to be having memory corruption issues using printf rather than kprintf, but that's probably something else.
from libogc.
fwiw, kprintf is here for low footprint debug usage. It wasn't intended as a general print function and shouldn't be linked under normal use. Can have a look at replacing with newlib function but it was rather intended to avoid linking in a lot of newlib machinery in particular scenarios so I'd prefer a lightweight replacement.
from libogc.
You might be able to replace it with nano-vfprintf from newlib then: https://github.com/devkitPro/newlib/blob/e928275566ab8168c078eadee2043a002bd9352d/newlib/libc/stdio/nano-vfprintf.c
from libogc.
Been a while since this was discussed, but has anyone considered mpaland's implementation? It's MIT licensed, doesn't depend on floating point, and seems very lightweight (only 600 LOC and intended for embedded systems).
from libogc.
Been a while since this was discussed, but has anyone considered mpaland's implementation? It's MIT licensed, doesn't depend on floating point, and seems very lightweight (only 600 LOC and intended for embedded systems).
i took a look at this, and its more active fork @ https://github.com/eyalroz/printf, and in essence it looks good but my problem with this is that it looks to be more complex and exports the functions as printf
which we already have thanks to newlib and would cause some conflicts. however, it is +/- what we need. a printf implementation that is simple, stand alone and can work even if the whole program has crashed/caused an exception as this is where kprintf is used.
from libogc.
Related Issues (20)
- net_getsockopt, net_getsockname, and struct pollfd not implemented HOT 4
- WPAD: Unable to read any Motion Plus data from the Wiimote HOT 3
- Card_Create() fails when game share filename prefixes HOT 2
- Wii MotionPlus being an expansion lead to issues with other expansions. HOT 1
- Ubuntu 21.04 Error: unknown type name 'BOOL' 13 | BOOL MP3Player_IsPlaying(void); HOT 2
- ogc_card_writepage() incorrectly calculates offset after block 1024 HOT 2
- GX_SetDispCopyDst takes a `ht` argument, however it is not used in the function. HOT 4
- Get track location in MP3Player? HOT 2
- Error when compiling with strict error reporting HOT 4
- DSP task code incorrectly sets flags instead of state in one case HOT 1
- Debug spins after hitting break point and trying to continue HOT 2
- `AESND_Reset` hangs when called HOT 5
- SYSCONF's IPL.CB should be signed, but leads to other issues HOT 15
- [WiiU / vWii] libogc may mistakenly mount WiiU's USB storage drive when multiple USB drives are connected HOT 8
- gctypes.h:9:10: fatal error: 'stdbool.h' file not found HOT 1
- GameCube: printf() does not work properly HOT 7
- PAD_ScanPads() reports GameCube controller continuously connecting and disconnecting HOT 5
- Uncalibrated accelerometer data from the Nunchuck
- Stereo audio output plays with swapped channels HOT 8
- asndlib 2.6.0 has no sound on dolphin (DSP HLE) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libogc.