diff options
author | Joseph Hunkeler <jhunk@stsci.edu> | 2009-09-28 20:46:57 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunk@stsci.edu> | 2009-09-28 20:46:57 -0400 |
commit | 26f35f22f7c3b88171b6e6d17bd3d287c0910c7a (patch) | |
tree | 8f1a92a2809f36a970bfe7f40624f7b66d89c14e /netnuke.h | |
parent | 4be53ade84f4d8e758a2417884b19b370aa5ecf6 (diff) | |
download | NetNuke-26f35f22f7c3b88171b6e6d17bd3d287c0910c7a.tar.gz |
Logging is more verbose, to include percentage completed for each device.
Sending the signal SIGUSR1 now skips the current device (this is useful)
MAX_SCAN has been implemented, and defaults to 255 iterations.
The line clearing code inside of cleanup() is now a function called clearline().
The short version string is now a define: NETNUKE_VERSION_STRING
The long version string will remain how it is for now.
Diffstat (limited to 'netnuke.h')
-rw-r--r-- | netnuke.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -7,9 +7,11 @@ void staticPattern() __attribute__((alias("fillRandom"))); uint64_t getSize(const char* media); void echoList(void); void usage(const char* cmd); -void version_short(); +void version_short(void); void version(const char* cmd); +void clearline(void); void cleanup(); +void skip(); #ifndef __FreeBSD__ int humanize_number(char *buf, size_t len, int64_t bytes, const char *suffix, int scale, int flags); @@ -44,6 +46,13 @@ int lwrite(char* format, ...); You should have received a copy of the GNU General Public License\n\ along with this program. If not, see <http://www.gnu.org/licenses/>." +#define NETNUKE_VERSION_STRING "NetNuke v%d.%d-%s\nCopyright (C) 2009 %s <%s>\n\ +This software is licensed under %sv%d\n",\ + NETNUKE_VERSION_MAJOR, NETNUKE_VERSION_MINOR,\ + NETNUKE_VERSION_REVISION, NETNUKE_AUTHOR,\ + NETNUKE_AUTHOR_EMAIL, NETNUKE_LICENSE_TYPE,\ + NETNUKE_LICENSE_VERSION + #define MAX_SCAN 255 /* Output update speed based on writes */ #define RETAINER 0 |