Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
sandbox: The unit of newMemory is MB
Browse files Browse the repository at this point in the history
change Bytes to MB in log

Fixes: #2068

Signed-off-by: Wang Liang <[email protected]>
  • Loading branch information
Wang Liang committed Sep 18, 2019
1 parent 74e7d3d commit c81db9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtcontainers/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,7 @@ func (s *Sandbox) updateResources() error {
if err != nil {
return err
}
s.Logger().Debugf("Sandbox memory size: %d Byte", newMemory)
s.Logger().Debugf("Sandbox memory size: %d MB", newMemory)
if s.state.GuestMemoryHotplugProbe && updatedMemoryDevice.addr != 0 {
//notify the guest kernel about memory hot-add event, before onlining them
s.Logger().Debugf("notify guest kernel memory hot-add event via probe interface, memory device located at 0x%x", updatedMemoryDevice.addr)
Expand Down

0 comments on commit c81db9c

Please sign in to comment.