diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2014-01-15 00:10:20 +0000 |
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2014-01-15 00:10:20 +0000 |
| commit | 39f274c358ed4902e03f3785abb7d32d5ed2bfec (patch) | |
| tree | 454f2ab26ed17be123260e9052adc018fef302dc /source/components/debugger/dbfileio.c | |
| parent | 86e94f4ac956e0aed23de30c7a458d215f54749a (diff) | |
Import ACPICA 20140414.vendor/acpica/20140114
Notes
svn path=/vendor-sys/acpica/dist/; revision=260659
svn path=/vendor-sys/acpica/20140414/; revision=260661; tag=vendor/acpica/20140114
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 0785c7ddd4df..63ecfd87447c 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); |
