Merge "print warning if offset != buffer size" into lmp-dev