Commit aafbdf92 authored by Michael Büsch's avatar Michael Büsch

ssb-sprom: Add warnings.

Signed-off-by: Michael Büsch's avatarMichael Buesch <mb@bu3sch.de>
parent 45aa3bd2
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)
......
......@@ -2,7 +2,7 @@
Broadcom Sonics Silicon Backplane bus SPROM data modification tool
Copyright (c) 2006-2007 Michael Buesch <mb@bu3sch.de>
Copyright (c) 2006-2008 Michael Buesch <mb@bu3sch.de>
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
......
......@@ -26,7 +26,6 @@
#include "utils.h"
#define VERSION ssb_stringify(VERSION_)
#define SPROM_SIZE 128 /* bytes */
#define SPROM4_SIZE 440
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment