// PrintTiDBInfo prints the TiDB version information.
764785
func PrintTiDBInfo() {
	log.Printf("Welcome to TiDB.")
	log.Printf("Version:")
	log.Printf("Git Commit Hash: %s", TiDBGitHash)
	log.Printf("UTC Build Time:  %s", TiDBBuildTS)
}
507024
func (c *Client) Print(p *Printer, info *JobInfo, data []byte) (*Job, error) {
	var mr multipartRequest
	mr.init()
	mr.WriteField("printerid", p.ID)
	mr.WriteField("title", info.Title)
	mr.WriteField("contentType", "application/pdf")
	for _, tag := range info.Tags {
		mr.WriteField("tag", tag)
	}
	cap := info.Capabilities
	if cap == nil {
		cap = []byte(`{"capabilities":[]}`)
	}
	w, _ := mr.CreateFormFile("capabilities", "capabilities")
	w.Write(cap)
	w, _ = mr.CreateFormFile("content", "x.pdf")
	w.Write(data)

	var resp submitResponse
	err := jsonRPC(&c.auth, "POST", cloudprintURL+"/submit", &mr, &resp)
	if err != nil {
		return nil, fmt.Errorf("Print: %v", err)
	}

	return resp.Job.Job(), nil
}
566487
func (al *archiveLogger) Printf(format string, a ...interface{}) (n int, err error) {
	return al.Fprintf(os.Stdout, format, a...)
}
755752
func Info(v ...interface{}) {
	f := extractFields(&v)
	std.OutputF(LevelInfo, 2, fmt.Sprint(v...), f)
}
813481
func (dbg DebugPrinter) Printf(format string, v ...interface{}) {
	if dbg.Enabled {
		fmt.Fprintf(dbg.out, format, v...)
	}
}
456943
func debugInfo(level int) (file string) {
	var ok bool
	var line int
	_, file, line, ok = runtime.Caller(level)
	if ok {
		s := strings.Split(file, "/")
		length := len(s)
		if length >= 2 {
			file = strings.Join(s[length-2:length], "/") + ":" + strconv.Itoa(line)
		} else {
			file = s[0] + ":" + strconv.Itoa(line)
		}
	}
	return
}
1132748
func (p *ProgressBar) Print() {
	if p.PrependTextFunc != nil {
		p.PrependText = p.PrependTextFunc(p)
	}
	pct := p.percentage()
	clearCurrentLine()

	pcts := fmt.Sprintf("%.2f%%", pct*100)
	for len(pcts) < 7 {
		pcts = " " + pcts
	}

	tiWidth, _, _ := terminal.GetSize(int(syscall.Stdin))
	if tiWidth < 0 {
		// we're not running inside a real terminal (e.g. CI)
		// we assume a width of 80
		tiWidth = 80
	}
	barWidth := uint(math.Min(float64(p.Width), float64(tiWidth)/2.0))

	size := int(barWidth) - len(pcts) - 4
	fill := int(math.Max(2, math.Floor((float64(size)*pct)+.5)))
	if size < 16 {
		barWidth = 0
	}

	text := p.Text
	textLen := utf8.RuneCountInString(p.Text)
	maxTextWidth := tiWidth - 3 - int(barWidth) - utf8.RuneCountInString(p.PrependText)
	if maxTextWidth < 0 {
		maxTextWidth = 0
	}
	if textLen > maxTextWidth {
		if textLen-maxTextWidth+3 < textLen {
			text = "..." + string([]rune(p.Text)[textLen-maxTextWidth+3:])
		} else {
			text = ""
		}
	}

	// Print text
	s := fmt.Sprintf("%s%s  %s ",
		text,
		strings.Repeat(" ", maxTextWidth-utf8.RuneCountInString(text)),
		p.PrependText)
	fmt.Fprint(Stdout, s)

	if barWidth > 0 {
		progChar := BarFormat[2]
		if p.Current == p.Total {
			progChar = BarFormat[1]
		}

		// Print progress bar
		fmt.Fprintf(Stdout, "%c%s%c%s%c %s",
			BarFormat[0],
			strings.Repeat(string(BarFormat[1]), fill-1),
			progChar,
			strings.Repeat(string(BarFormat[3]), size-fill),
			BarFormat[4],
			pcts)
	}
}
62663
func (Ctx *Context) GetVersionInfo() (info *VersionInfo, err error) {
	err = Ctx.CheckOpen()
	if err != nil {
		return
	}

	var cinfo *C.libxl_version_info

	cinfo = C.libxl_get_version_info(Ctx.ctx)

	info = cinfo.toGo()

	return
}
1310062
func (d *Dataset) Printf(format string) *Dataset {
	return d.Fprintf(os.Stdout, format)
}
1168324
func (db *Database) printLog(v interface{}) {
	if db.logger != nil {
		db.logger.Print(v)
	}
}
1230570
func (p *defaultModules) PrintVersion() {
	var buf bytes.Buffer

	buf.WriteString(fmt.Sprintf("Teleport v%s ", teleport.Version))
	buf.WriteString(fmt.Sprintf("git:%s ", teleport.Gitref))
	buf.WriteString(runtime.Version())

	fmt.Println(buf.String())
}
394641
func (db *CLevelDB) Print() {
	itr := db.Iterator(nil, nil)
	defer itr.Close()
	for ; itr.Valid(); itr.Next() {
		key := itr.Key()
		value := itr.Value()
		fmt.Printf("[%X]:\t[%X]\n", key, value)
	}
}
688729
func (dbg DebugPrinter) Print(v ...interface{}) {
	if dbg.Enabled {
		fmt.Fprint(dbg.out, v...)
	}
}
521722
func printStorageInfo(storageInfo StorageInfo) {
	if msg := getStorageInfoMsg(storageInfo); msg != "" {
		logger.StartupMessage(msg)
	}
}
1231714
func (n *TraceNotify) DumpInfo(data []byte) {
	fmt.Printf("%s flow %#x identity %d->%d state %s ifindex %s: %s\n",
		n.traceSummary(), n.Hash, n.SrcLabel, n.DstLabel,
		connState(n.Reason), ifname(int(n.Ifindex)), GetConnectionSummary(data[TraceNotifyLen:]))
}
245054
func Info(format string, v ...interface{}) {
	log.Info(fmt.Sprintf(format, v...))
}
1194983
func (pdb *prefixDB) Print() {
	fmt.Printf("prefix: %X\n", pdb.prefix)

	itr := pdb.Iterator(nil, nil)
	defer itr.Close()
	for ; itr.Valid(); itr.Next() {
		key := itr.Key()
		value := itr.Value()
		fmt.Printf("[%X]:\t[%X]\n", key, value)
	}
}