From: Michael Buesch Date: Wed, 25 Jun 2008 10:03:40 +0000 (+0200) Subject: ssb-sprom: Add warnings. X-Git-Tag: b43-fwcutter-013~27 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=aafbdf921ec7948e81154b434ceb9861441f24e0;p=b43-tools.git ssb-sprom: Add warnings. Signed-off-by: Michael Buesch --- diff --git a/ssb_sprom/Makefile b/ssb_sprom/Makefile index d689120..eb0eac0 100644 --- a/ssb_sprom/Makefile +++ b/ssb_sprom/Makefile @@ -1,5 +1,3 @@ -VERSION = 001 - CC = cc PREFIX = /usr/local CFLAGS = -std=c99 -O2 -fomit-frame-pointer -Wall -D_BSD_SOURCE @@ -8,8 +6,6 @@ LDFLAGS = OBJECTS = ssb_sprom.o utils.o -CFLAGS += -DVERSION_=$(VERSION) - all: ssb_sprom ssb_sprom: $(OBJECTS) diff --git a/ssb_sprom/ssb_sprom.c b/ssb_sprom/ssb_sprom.c index f03a4d7..1095277 100644 --- a/ssb_sprom/ssb_sprom.c +++ b/ssb_sprom/ssb_sprom.c @@ -2,7 +2,7 @@ Broadcom Sonics Silicon Backplane bus SPROM data modification tool - Copyright (c) 2006-2007 Michael Buesch + Copyright (c) 2006-2008 Michael Buesch This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -918,7 +918,12 @@ static int open_outfile(int *fd) static void print_banner(int forceprint) { - const char *str = "Broadcom-SSB SPROM data modification tool version " VERSION "\n"; + const char *str = "Broadcom-SSB SPROM data modification tool.\n" + "\n" + "Copyright (C) Michael Buesch\n" + "Licensed under the GNU/GPL version 2 or later\n" + "\n" + "DO NOT USE THIS TOOL. YOU WILL BRICK YOUR DEVICE.\n"; if (forceprint) prdata(str); else diff --git a/ssb_sprom/ssb_sprom.h b/ssb_sprom/ssb_sprom.h index e1b109c..9705c0a 100644 --- a/ssb_sprom/ssb_sprom.h +++ b/ssb_sprom/ssb_sprom.h @@ -26,7 +26,6 @@ #include "utils.h" -#define VERSION ssb_stringify(VERSION_) #define SPROM_SIZE 128 /* bytes */ #define SPROM4_SIZE 440 diff --git a/ssb_sprom/utils.c b/ssb_sprom/utils.c index b57b415..0661b64 100644 --- a/ssb_sprom/utils.c +++ b/ssb_sprom/utils.c @@ -39,7 +39,7 @@ int prinfo(const char *fmt, ...) return 0; va_start(va, fmt); - ret = vfprintf(stderr, fmt, va); + ret = vfprintf(stdout, fmt, va); va_end(va); return ret; @@ -63,7 +63,7 @@ int prdata(const char *fmt, ...) va_list va; va_start(va, fmt); - ret = vfprintf(stderr, fmt, va); + ret = vfprintf(stdout, fmt, va); va_end(va); return ret;