fbsim

framebuffer trivial "simulator"
git clone git://deadbeef.fr/fbsim.git
Log | Files | Refs | README

commit 315d7e3b7981840438966a85db8946bb7a1de794
parent 5d39da4638130a3168d79bb4f76f8d877e3c1674
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Fri, 18 Sep 2020 15:49:28 +0200

improved usage_and_quit

Diffstat:
Msrc/main.c | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -56,13 +56,12 @@ static struct shared_mem_t fbsim; void usage_and_quit( int argc, char** argv ) { fprintf( stderr, - "Usage: %s " - "UNIX_SOCKET (%s) " - "X_RESOLUTION (%s) " - "Y_RESOLUTION (%s) " - "BITS_PER_PIXEl (%s) " - "REFRESH_RATE (In hertz) (%s) " - "\n" + "Usage: %s path width height bpp freq\n" + "\tpath: (%s) where to share memory\n" + "\twidth: (%s)\n" + "\theight: (%s)\n" + "\tbpp: (%s) bits per pixel\n" + "\tfreq: (%s) refresh frequency, in Hertz\n" , argv[0] , argc < 1 ? "NEEDED" : argv[1] , argc < 2 ? "NEEDED" : argv[2]