char buf[1024];
size_t len, total = 0;
- while( (len = VFS_Read(src, sizeof(buf), buf)) == sizeof(buf) )
- VFS_Write(dst, len, buf), total += len;
+ while( (len = VFS_Read(src, sizeof(buf), buf)) == sizeof(buf) ) {
+ VFS_Write(dst, len, buf);
+ total += len;
+ }
VFS_Write(dst, len, buf), total += len;
Log_Notice("DiskTool", "Copied %i from %s to %s", total, Source, Destination);
typedef int64_t tTime;
extern tTime now(void);
extern int64_t timestamp(int sec, int min, int hr, int day, int month, int year);
+extern void format_date(tTime TS, int *year, int *month, int *day, int *hrs, int *mins, int *sec, int *ms);
#define PACKED __attribute__((packed))
#define DEPRECATED
case 'i':
fprintf(stderr, " %i", va_arg(args, int));
break;
- case 'p':
+ case 'x':
+ fprintf(stderr, " 0x%x", va_arg(args, unsigned int));
+ break;
+ case 's':
fprintf(stderr, " \"%s\"", va_arg(args, const char *));
break;
+ case 'p':
+ fprintf(stderr, " %p", va_arg(args, const void *));
+ break;
default:
fprintf(stderr, " ?");
break;