diff options
Diffstat (limited to 'source/components/debugger/dbfileio.c')
-rw-r--r-- | source/components/debugger/dbfileio.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/source/components/debugger/dbfileio.c b/source/components/debugger/dbfileio.c index 0785c7d..63ecfd8 100644 --- a/source/components/debugger/dbfileio.c +++ b/source/components/debugger/dbfileio.c @@ -6,7 +6,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2013, Intel Corp. + * Copyright (C) 2000 - 2014, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -473,6 +473,7 @@ AcpiDbReadTableFromFile ( ACPI_TABLE_HEADER **Table) { FILE *File; + UINT32 FileSize; UINT32 TableLength; ACPI_STATUS Status; @@ -486,9 +487,17 @@ AcpiDbReadTableFromFile ( return (AE_ERROR); } + /* Get the file size */ + + fseek (File, 0, SEEK_END); + FileSize = (UINT32) ftell (File); + fseek (File, 0, SEEK_SET); + /* Get the entire file */ - fprintf (stderr, "Loading Acpi table from file %s\n", Filename); + fprintf (stderr, "Loading Acpi table from file %10s - Length %.8u (%06X)\n", + Filename, FileSize, FileSize); + Status = AcpiDbReadTable (File, Table, &TableLength); fclose(File); |