From e43dc517fab6a59af406e23129032d3e63f32161 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Mon, 24 Sep 2001 02:28:14 +0000 Subject: [PATCH] Minor printf fixes. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@309 6ac86273-5f31-0410-b378-82cca8765d1b --- sys/sys.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/sys/sys.c b/sys/sys.c index 4da3d0f..77dc7c4 100644 --- a/sys/sys.c +++ b/sys/sys.c @@ -26,15 +26,12 @@ ***************************************************************/ /* $Log$ - * Revision 1.9 2001/09/24 02:21:14 bartoldeman - * /* version 2.2 jeremyd 2001/9/20 - * Changed so if no source given or only source drive (no path) - * given, then checks for kernel.sys & command.com in current - * path (of current drive or given drive) and if not there - * uses root (but only if source & destination drive are different). - * Fix printf to include count(ret) if copy can't write all requested bytes - * */ + * Revision 1.10 2001/09/24 02:28:14 bartoldeman + * Minor printf fixes. * +/* Revision 1.9 2001/09/24 02:21:14 bartoldeman +/* SYS and printer fixes +/* /* Revision 1.8 2001/09/23 20:39:44 bartoldeman /* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling /* @@ -662,7 +659,6 @@ BOOL copy(COUNT drive, BYTE * srcPath, BYTE * rootPath, BYTE * file) if (stat(source, &fstatbuf)) { - printf( "%s: \"%s\" not found\n", pgm, srcPath); printf( "%s: \"%s\" not found\n", pgm, source); if ((rootPath != NULL) && (*rootPath) /* && (errno == ENOENT) */ ) @@ -681,7 +677,7 @@ BOOL copy(COUNT drive, BYTE * srcPath, BYTE * rootPath, BYTE * file) if ((fdin = open(source, O_RDONLY|O_BINARY)) < 0) { - printf( "%s: \"%s\" not found\n", pgm, srcPath); + printf( "%s: failed to open \"%s\"\n", pgm, source); return FALSE; }